-
Notifications
You must be signed in to change notification settings - Fork 59
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
Quality of life improvements #509
Quality of life improvements #509
Conversation
WebFreak001
commented
Oct 29, 2023
- Token.toString implementation for neater debug printing
- make tokenizer return non-const tokens, so they can be altered afterwards if necessary (no technical reason to make it const)
for neater debug printing
since data is allocated with an appender that is not cleared, GC owns the memory and may be modified by the user if they wish to. Can still be used in all places where const was used before.
✅ PR OK, no changes in deprecations or warnings Total deprecations: 0 Total warnings: 0 Build statistics: ------ libdparse statistics ------
statistics (-before, +after)
-library size=3105644 libdparse.a
+library size=3163068 libdparse.a
rough build time=16s
------ DCD statistics ------
statistics (-before, +after)
client size=1048544 bin/dcd-client
-server size=3089720 bin/dcd-server
+server size=3089912 bin/dcd-server
rough build time=75s
-DCD run_tests.sh Elapsed (wall clock) time (h:mm:ss or m:ss): 0:08.23
-DCD run_tests.sh Maximum resident set size (kbytes): 43260
+DCD run_tests.sh Elapsed (wall clock) time (h:mm:ss or m:ss): 0:08.27
+DCD run_tests.sh Maximum resident set size (kbytes): 41124
short requests: (230x)
min request time = 0.007ms
- 10th percentile = 0.111ms
- median time = 0.402ms
- 90th percentile = 0.717ms
- max request time = 1.456ms
+ 10th percentile = 0.116ms
+ median time = 0.408ms
+ 90th percentile = 0.708ms
+ max request time = 1.422ms
long requests over 10ms: (51x)
- min request time = 15.014ms
- 10th percentile = 15.354ms
- median time = 16.416ms
- 90th percentile = 19.013ms
- max request time = 26.666ms
+ min request time = 15.295ms
+ 10th percentile = 16.203ms
+ median time = 17.252ms
+ 90th percentile = 18.977ms
+ max request time = 25.990ms
top 5 GC sources in server:
bytes allocated, allocations, type, function, file:line
- 78117888 844 void[] std.array.Appender!(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields,TriviaToken; mixin TokenTriviaFields;"))[]).Appender.ensureAddable.__lambda9 /opt/hostedtoolcache/dc/dmd-2.105.2/x64/dmd2/linux/bin64/../../src/phobos/std/array.d:3634
+ 78109696 843 void[] std.array.Appender!(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields,TriviaToken; mixin TokenTriviaFields;")[]).Appender.ensureAddable.__lambda9 /opt/hostedtoolcache/dc/dmd-2.105.2/x64/dmd2/linux/bin64/../../src/phobos/std/array.d:3634
15257216 476788 void[] core.lifetime._d_newitemT!(Data)._d_newitemT /opt/hostedtoolcache/dc/dmd-2.105.2/x64/dmd2/linux/bin64/../../src/druntime/import/core/lifetime.d:2833
14316800 164422 void[] std.array.Appender!(DSymbol*[]).Appender.ensureAddable.__lambda9 /opt/hostedtoolcache/dc/dmd-2.105.2/x64/dmd2/linux/bin64/../../src/phobos/std/array.d:3634
9773344 305417 Data std.array.Appender!string.Appender.this /opt/hostedtoolcache/dc/dmd-2.105.2/x64/dmd2/linux/bin64/../../src/phobos/std/array.d:3509
7372208 281 ubyte[] msgpack.unpacker.Unpacker.InternalBuffer!().initializeBuffer ../../../../.dub/packages/msgpack-d/1.0.4/msgpack-d/src/msgpack/common.d:628 Full build output
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #509 +/- ##
=======================================
Coverage 84.25% 84.25%
=======================================
Files 11 11
Lines 8561 8561
=======================================
Hits 7213 7213
Misses 1348 1348
Continue to review full report in Codecov by Sentry.
|