Error log design...

  • Thread starter Anthony J Bybell
  • Start date
A

Anthony J Bybell

(Hopefully this posted will be under the main
thread...groups.google.co.uk can't retrieve the parent posting...most
likely it won't be. Oh well.)

A ring buffer (i.e., something with scrolling head/tail pointers)
would eliminate the overhead of your linked list. When it wraps, it's
up to you to either overwrite it or only keep the first data you
collected. Note also that if you're desperate you could employ some
sort of simple compression scheme (e.g., using packed 7 bit or smaller
characters) if your buffer space is tight.

HTH,
-t
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,158
Messages
2,570,880
Members
47,414
Latest member
djangoframe

Latest Threads

Top