top | item 45681656

(no title)

lepicz | 4 months ago

some people simply like pain :D

(i worked with asn1c (not sure which fork) and had to hack in custom allocator and 64bit support. i shiver every time something needs attention in there)

discuss

order

BradleyChatha|4 months ago

:)

Honestly any compiler project in pure C is pretty hardcore in my eyes, ASN.1 must amplify the sheer horror.

cryptonector|4 months ago

Well, C is the source of the horror, for me anyways.

morshu9001|4 months ago

I was using asn1c with a Rust project since there was no Rust asn1 compiler at the time. It became a bottleneck, and in profiling I found that the string copying helper used everywhere was doing bit-level copying even in our byte-aligned mode, which was extra weird cause that function had a param for byte alignment.

One memcpy made it like 30% faster overall.