Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
71643b2f
Commit
71643b2f
authored
Jun 27, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: fix string optimization
R=golang-dev, r CC=golang-dev
https://golang.org/cl/6354048
parent
8744d35d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
string.goc
src/pkg/runtime/string.goc
+3
-1
No files found.
src/pkg/runtime/string.goc
View file @
71643b2f
...
...
@@ -155,7 +155,9 @@ concatstring(int32 n, String *s)
out
=
s
[
i
];
}
}
if
(
count
<=
1
)
//
zero
or
one
non
-
empty
string
in
concatenation
if
(
count
==
0
)
return
runtime
·
emptystring
;
if
(
count
==
1
)
//
zero
or
one
non
-
empty
string
in
concatenation
return
out
;
out
=
gostringsize
(
l
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment