Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
c6d45c30
Commit
c6d45c30
authored
Jul 01, 2016
by
Niels
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/parser_performance' into develop
- improved parser performance by avoiding a copy of the result value
parents
8f9f5617
a5262c18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
json.hpp
src/json.hpp
+1
-1
json.hpp.re2c
src/json.hpp.re2c
+1
-1
No files found.
src/json.hpp
View file @
c6d45c30
...
@@ -8485,7 +8485,7 @@ basic_json_parser_63:
...
@@ -8485,7 +8485,7 @@ basic_json_parser_63:
// return parser result and replace it with null in case the
// return parser result and replace it with null in case the
// top-level value was discarded by the callback function
// top-level value was discarded by the callback function
return
result
.
is_discarded
()
?
basic_json
()
:
result
;
return
result
.
is_discarded
()
?
basic_json
()
:
std
::
move
(
result
)
;
}
}
private
:
private
:
...
...
src/json.hpp.re2c
View file @
c6d45c30
...
@@ -7795,7 +7795,7 @@ class basic_json
...
@@ -7795,7 +7795,7 @@ class basic_json
// return parser result and replace it with null in case the
// return parser result and replace it with null in case the
// top-level value was discarded by the callback function
// top-level value was discarded by the callback function
return result.is_discarded() ? basic_json() :
result
;
return result.is_discarded() ? basic_json() :
std::move(result)
;
}
}
private:
private:
...
...
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