Apr
15
comment iterate vector, remove certain items as I go
@averagejoe: If you do that, the iterator returned by erase() is incremented for the next loop iteration. But you don't want it incremented - erase() returned the correct iterator for the next loop iteration, additionally incrementing it skips an element.
Apr
4
awarded Good Answer
Apr
1
comment Faster technique to read a .txt file in a loop
Are you sure reading the text file is the bottleneck? How are you reading it currently?
Mar
28
awarded Caucus
Mar
26
revised What does the "@" char mean in ecmascript 6?
added 4 characters in body; edited title
Mar
21
revised Python iterating through folders and \ characters
added 4 characters in body; edited title
Mar
20
revised Why is a double semicolon a SyntaxError in Python?
typo
Mar
19
comment What is the best way to read huge data file that is larger than RAM in C++?
If it uses all the unused memory for cached data that's not really a problem in itself. It shouldn't lead to any paging since the system knows it can drop stuff from the cache when it needs more "real" memory. And while it doesn't need more "real" memory it can as well use all the unused memory for caching.
Mar
15
awarded Good Answer
Feb
23
awarded Populist
Feb
18
reviewed Looks Good On click fade in another div using raphael js
Feb
18
reviewed Requires Editing woocommerce custom template content-product.php
Feb
18
reviewed Looks Good Java Graphics Not Executing Paint Function Without extends
Feb
18
reviewed Looks Good Strange behavior occuring with msgsnd/msgrcv
Feb
11
awarded Autobiographer
Feb
11
comment how to free different size allocated memory in linked-list in C
It's not clear to me which variables are changing and what is executed 100 times. In general, every pointer returned by a call to malloc() needs to be freed with free() later on. So if you have a loop doing 25 malloc() you should have a loop doing 25 free() to clean it up. How much memory each malloc() call allocated doesn't matter, just that every malloc() has a corresponding free().
Feb
8
awarded Great Answer
Feb
2
awarded Guru
Jan
18
revised Connecting to dbus over tcp
some code formatting
Jan
18
awarded Yearling
1 2 3 4 5