]> vcs.slashdirt.org Git - sw/tic2json.git/log

vcs.slashdirt.org Git - sw/tic2json.git/log

git git / sw / tic2json.git / log
? search:
summary | shortlog | log | commit | commitdiff | tree
first ⋅ prev ⋅ next
sw/tic2json.git
4 years agoFurther reduce memory pressure by using const char for labels
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 13:19:55 +0000 (15:19 +0200)]
Further reduce memory pressure by using const char for labels

This essentially halves the number of allocations by only using them for
dynamic data (namely horodate and data).

Valgrind output on 100KB test:
- Before:
see previous commit
- After:
thread 1 finished and used 21967 bytes out of 8388608 on its stack. Margin: 8366641 bytes.
total heap usage: 4,961 allocs, 4,961 frees, 83,025 bytes allocated

4 years agoparser: don't malloc()
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 13:05:00 +0000 (15:05 +0200)]
parser: don't malloc()

At the cost of a slight stack usage increase, this drastically reduces
overall memory usage and improves performance since we don't incur the
malloc() penalty.

Sample figures from a single run over a 100KB test capture:
- Before:
thread 1 finished and used 17151 bytes out of 8388608 on its stack. Margin: 8371457 bytes.
total heap usage: 13,996 allocs, 13,996 frees, 255,865 bytes allocated
- After:
thread 1 finished and used 21967 bytes out of 8388608 on its stack. Margin: 8366641 bytes.
total heap usage: 9,516 allocs, 9,516 frees, 112,505 bytes allocated

4 years agoparser: output frames as individual root elements
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 10:22:48 +0000 (12:22 +0200)]
parser: output frames as individual root elements

4 years agoparser: simplify error recovery
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 10:13:25 +0000 (12:13 +0200)]
parser: simplify error recovery

4 years agoparser: implement masking zero-values
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 20:59:00 +0000 (22:59 +0200)]
parser: implement masking zero-values

4 years agoparser: parse hex values (STGE)
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 20:51:28 +0000 (22:51 +0200)]
parser: parse hex values (STGE)

4 years agoparser: process int values as ints
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 20:43:43 +0000 (22:43 +0200)]
parser: process int values as ints

4 years agoparser: prepare to process int values
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 20:25:22 +0000 (22:25 +0200)]
parser: prepare to process int values

4 years agodon't copy label
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 20:03:13 +0000 (22:03 +0200)]
don't copy label

4 years agoadd stty.settings
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 14:19:40 +0000 (16:19 +0200)]
add stty.settings

4 years agofix error handling/recovery
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 14:21:09 +0000 (16:21 +0200)]
fix error handling/recovery

Improve error reporting too.

Error messages are sent to stderr, so stdout still carries a valid JSON
stream.

4 years agoinitial commit fully working on sample data
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月13日 13:26:20 +0000 (15:26 +0200)]
initial commit fully working on sample data

tic2json TIC parser/converter
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /