3 ms·
Well-written C tends to minimise string usage in general, preferring to convert to another format as soon as possible. Allocating, copying, and passing around s
by userbinator 4y ago
Well-written C tends to minimise string usage in general, preferring to convert to another format as soon as possible. Allocating, copying, and passing around strings in large quantities is not a good idea for efficiency, but of course some people coming from other HLLs seem to try to do it anyway, which causes many other problems.
- bell-cot 4y agoTHIS. And programming, engineering, and life in general have so, SO many other situations where "X is not very good at doing Y". Yet (my experience) guys seem extremely resistant to the common-sense strategy of "then try to minimize how much Y you do with X".
- agumonkey 4y agoto the point I often wonder if strings should exist.. buffers -> symbols | structs.
- gaws 4y ago> preferring to convert to another format as soon as possible. Like what?
- userbinator 4y agoA structure of binary fields.