On Wed, Aug 28, 2013 at 10:49 AM, Christopher Sean Morrison
<[email protected]>wrote:

> On Aug 28, 2013, at 11:29 AM, [email protected] wrote:
>
> +#include <time.h
> >
>
> What time symbol is exposed in bu.h?
>

It no longer applies--I did have a time_t arg to bu_utctime for testing but
have removed it.  (And if I needed time_t I guess I could do as is done in
timer.c and use a 64-bit int or unsigned int.)

> + const char *modified; /**< attribute date modified */
> + const char *version; /**< attribute version */
> + const char *anamespace; /**< attribute anamespace */
>
> Just a word of caution, this may be a significant increase in memory use
> on models with large
>

I think I may have committed that before I did all my local tests.   And
the "anamespace" var is just a placeholder since the namespacing scheme is
still a bit of a gleam-in-the-eye.


> numbers of objects.  That's 32 additional bytes per attribute just for the
> pointers, 20*4 bytes pe
> r
> timestamp string, a half dozen attributes per object, and potentially tens
> of thousands of objects.  (32+80) * 6 * 10000 ~= 7MB
>
Maybe just keep the time_t value (8 or 16 bytes max for each) and convert
back to a time string for display?


> Note that it'll also be highly desirable to timestamp all objects (not
> just their attributes) ... and stash those timestamps as attributes.  So
> this would imply we're even time-stamping our timestamps, which is of
> course ridiculous.
>

I'm sure we'll not do anything so ludicrous (I hope).


> It might be worth creating a timestamp struct (not in string form).  That
> would reduce the memory footprint overhead substantially and let them be
> optional (null pointer implying unset).
>

How do you see that implemented?

Did the changes to the new date-time function look okay?
>

Looks great so far! (BTW, I've given up on a bu_utctime test for now--time
stuff has too much dependence on other factors beyond our control as I see
it.)
Best,

-Tom
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to