-
-
Notifications
You must be signed in to change notification settings - Fork 749
Removed auto-decoding from std.conv.parse (part 2) #4674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Ping @9il |
Current coverage is 88.74% (diff: 100%)@@ master #4674 diff @@
==========================================
Files 121 121
Lines 74037 74043 +6
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 65705 65709 +4
- Misses 8332 8334 +2
Partials 0 0
|
|
LGTM |
|
Please add small msg to change log |
|
@9il Done |
|
@JackStouffer please add test (to the PR description) with global |
IIRC @klickverbot pointed out that a good way to prevent LDC optimizations is to use separate files & annotate the tested methods with I have a small repo for benchmark scripts which are separately compiled and then linked, maybe that helps you? |
|
btw, |
5e8575d to
2bd7979
Compare
|
Rebased. Will add extra test when I get time. |
2bd7979 to
7184cf4
Compare
7184cf4 to
da24815
Compare
|
Ping @9il |
|
This doesn't look right. Most code should stay the same. The only change is at the top level, where decodable strings should be replaced with |
|
Where is part 1? I hope it doesn't make similar changes... :) |
|
@andralex Here's the problem, as outlined here
|
da24815 to
55c1270
Compare
|
@JackStouffer then just work on a temporary and in the end assign the reference from it. It's a classic. |
|
I don't understand. Operate on a temporary and reassign it how? If I make a copy of |
55c1270 to
3bf8911
Compare
| suitable `outer` pointer)) | ||
| $(LI Conversions from strings to number types using $(REF to, std,conv) | ||
| and $(REF parse, std,conv) were optimized. On average, integer types | ||
| are three times faster, and floating point types are 40% faster.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change log should be updated. ping @wilzbach . You wanted to change current change log system
|
@JackStouffer it is save to reassing ubyte array to a string after integer parsing. Please implement Andrei's suggestions |
3bf8911 to
e1876f4
Compare
|
I will get back to this eventually. I'm a bit swamped with school and work right now, so maybe around Thanksgiving. |
|
@JackStouffer thanks, ping me when ready. |
|
Closed in favor of #5015 |
Benchmark code here: https://gist.github.com/JackStouffer/af53d497532a864f56a5b53cb35cd438
Gives about a 40% speed increase: