Next privilege 200 Rep.
See reduced ads
Next badge 0/1
~12k people reached
- 0 posts edited
- 0 helpful flags
- 11 votes cast
How many `malloc` calls is too many? If any?
It's not actually a problem right now, I just don't want it to become a problem. The 1-malloc-per-object is more down to the way the api is designed than a specific though process. I have written code (a parser too) that worked like your parser.
Are unit tests really that useful?
@MasonWheeler That's a very nice horse you're beating, I think it may have died though... SQLite has that many tests because its a goddamn database. I want to make sure that works. As another example, the Silverstripe framework has close to a 1:1 ratio of tests:code, so it's not like SQLite is representative.