{"id":15413981,"url":"https://github.com/myitcv/sort_inlining_example","last_synced_at":"2025-10-19T19:34:35.973Z","repository":{"id":78276357,"uuid":"66068463","full_name":"myitcv/sort_inlining_example","owner":"myitcv","description":"Discussion for https://github.com/golang/go/issues/16721","archived":false,"fork":false,"pushed_at":"2016-08-19T09:02:57.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T18:39:36.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myitcv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-19T08:58:08.000Z","updated_at":"2016-12-11T15:12:58.000Z","dependencies_parsed_at":"2023-07-29T05:01:05.301Z","dependency_job_id":null,"html_url":"https://github.com/myitcv/sort_inlining_example","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"4ed6de4efff8be4e00df7a44611f694483601648"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/myitcv/sort_inlining_example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myitcv%2Fsort_inlining_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myitcv%2Fsort_inlining_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myitcv%2Fsort_inlining_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myitcv%2Fsort_inlining_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myitcv","download_url":"https://codeload.github.com/myitcv/sort_inlining_example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myitcv%2Fsort_inlining_example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279886527,"owners_count":26239469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T16:59:15.737Z","updated_at":"2025-10-19T19:34:35.951Z","avatar_url":"https://github.com/myitcv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## sort inlining example\n\nHere is the output of `run.sh`\n\n```\n+ go env\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOEXE=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGOOS=\"linux\"\nGOPATH=\"/home/myitcv/gostuff\"\nGORACE=\"\"\nGOROOT=\"/home/myitcv/gos\"\nGOTOOLDIR=\"/home/myitcv/gos/pkg/tool/linux_amd64\"\nCC=\"gcc\"\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build555042588=/tmp/go-build -gno-record-gcc-switches\"\nCXX=\"g++\"\nCGO_ENABLED=\"1\"\n+ echo\n\n+ go build -gcflags=-m\n# github.com/myitcv/sort_inlining_example\n./main.go:11: can inline dataLess\n./main.go:25: can inline dataSwap\n./main.go:164: inlining call to dataLess\n./main.go:167: inlining call to dataLess\n./main.go:170: inlining call to dataSwap\n./main.go:187: inlining call to dataSwap\n./main.go:198: inlining call to dataLess\n./main.go:199: inlining call to dataSwap\n./main.go:202: inlining call to dataLess\n./main.go:203: inlining call to dataSwap\n./main.go:205: inlining call to dataLess\n./main.go:206: inlining call to dataSwap\n./main.go:80: inlining call to dataLess\n./main.go:84: inlining call to dataLess\n./main.go:86: inlining call to dataLess\n./main.go:92: inlining call to dataSwap\n./main.go:102: inlining call to dataLess\n./main.go:103: inlining call to dataSwap\n./main.go:107: inlining call to dataLess\n./main.go:114: inlining call to dataLess\n./main.go:115: inlining call to dataSwap\n./main.go:128: inlining call to dataLess\n./main.go:130: inlining call to dataLess\n./main.go:136: inlining call to dataSwap\n./main.go:142: inlining call to dataSwap\n./main.go:149: inlining call to dataLess\n./main.go:150: inlining call to dataSwap\n./main.go:51: inlining call to dataLess\n./main.go:52: inlining call to dataSwap\n./main.go:214: inlining call to dataSwap\n./main.go:157: leaking param content: data\n./main.go:175: leaking param content: data\n./main.go:196: leaking param content: data\n./main.go:59: leaking param content: data\n./main.go:147: leaking param content: data\n./main.go:29: leaking param content: data\n./main.go:15: leaking param content: vs\n./main.go:8: x escapes to heap\n./main.go:6: []string literal escapes to heap\n./main.go:8: main ... argument does not escape\n./main.go:11: dataLess vs does not escape\n./main.go:25: leaking param content: data\n./main.go:212: leaking param content: data\n+ echo\n\n+ go test -bench BenchmarkSortString1K\ntesting: warning: no tests to run\nBenchmarkSortString1K-8   \t   10000\t    104990 ns/op\nPASS\nok  \tgithub.com/myitcv/sort_inlining_example\t1.801s\n+ echo\n\n+ go test -bench BenchmarkSortString1K sort\nBenchmarkSortString1K-8   \t   10000\t    156416 ns/op\nPASS\nok  \tsort\t2.939s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyitcv%2Fsort_inlining_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyitcv%2Fsort_inlining_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyitcv%2Fsort_inlining_example/lists"}