You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,38 +4,38 @@ This is the .net implementation for DOML (Data Oriented Markup Language), which
4
4
Note: Check out the proper [spec](https://github.com/DOML-DataOrientedMarkupLanguage/DOML-Spec) if you want to see what this language can do and how to use it, for the sake of simplicity I won't repeat myself here. Furthermore this is 100% compliant with the current spec.
- With/Without comments makes a miniscle difference
35
-
- Emission is around 15ms without comments, and 44ms with comments
31
+
- Parsing is around 17ms (or ~17,000ns)
32
+
- With/Without comments makes a miniscle difference, this is mainly due to line comments being ignored with a readline whereas whitespace is done bit by bit, so the calls cancel out the cost of creating a new instruction and placing the string in.
33
+
- Emission is around 16ms without comments, and 45ms with comments
36
34
- With comments is significantly slower due to the string manipulation that occurs, this could be optimised quite signficantly
37
35
- Emission in general could also be optimised, but I'm more focusing on the reading currently
38
36
- Execution is 2.3ms in unsafe mode, and 3.6ms in safe mode.
39
37
- Thus Execution is is around 1.5x slower when using safe mode.
40
38
- Doubt it can be optimised too much more, due to the nature of it being relatively simple, though perhaps a nicer branching system could benefit the code.
41
-
- Reading IR without comments is around 0.25ms and with comments is 0.26ms, thus there is basically no real difference
39
+
- Reading IR without comments is around 7.2ms and with comments is 5.7ms
40
+
- The difference can be attributed to the fact that reading without reads the entire line in, and that is less optimised then reading multiple lines, due to the fact it indexes and substrings from that; it also could be attributed to the memory cost associated, and the resulting cache misses.
41
+
- In reality there is little difference, though it does raise questions of whether or not we could improve the compact code, and I think there is a lot of room for improvement there.
0 commit comments