]> 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 agoparser: help: French audience
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月15日 11:03:54 +0000 (13:03 +0200)]
parser: help: French audience

4 years agoparser: implement long date
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月15日 10:45:33 +0000 (12:45 +0200)]
parser: implement long date

4 years agoparser: implement optional output as dictionary
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月15日 10:15:25 +0000 (12:15 +0200)]
parser: implement optional output as dictionary

4 years agoparser: only print description when requested
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月15日 10:02:15 +0000 (12:02 +0200)]
parser: only print description when requested

4 years agoadd basic Makefile
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 21:00:21 +0000 (23:00 +0200)]
add basic Makefile

4 years agoimplement filtering via simple config file
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 20:42:11 +0000 (22:42 +0200)]
implement filtering via simple config file

4 years agolexer: remove commented out v1 etiquettes
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 18:07:05 +0000 (20:07 +0200)]
lexer: remove commented out v1 etiquettes

4 years agolexer: switch to 7bit
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 18:04:59 +0000 (20:04 +0200)]
lexer: switch to 7bit

4 years agoparser: formatting cleanup, no code change
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 15:38:55 +0000 (17:38 +0200)]
parser: formatting cleanup, no code change

4 years agoparser: implement frame skipping
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 15:32:47 +0000 (17:32 +0200)]
parser: implement frame skipping

4 years agoparser: add usage() and option to add \n after fields
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 14:43:11 +0000 (16:43 +0200)]
parser: add usage() and option to add \n after fields

4 years agoparser: implement label unpacking
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 14:19:32 +0000 (16:19 +0200)]
parser: implement label unpacking

This exposes the full description as well as label unit as per specification,
at the cost of slightly increased stack usage

4 years agoparser: prepare implementing label unpacking
commit | commitdiff | tree
Thibaut VARÈNE [2021年8月14日 13:58:21 +0000 (15:58 +0200)]
parser: prepare implementing label unpacking

No output change for now.
This comes at zero cost over the previous implementation, save for binary size increase.

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 によって変換されたページ (->オリジナル) /