On 01/ 8/10 05:54 PM, Danek Duvall wrote:
Shawn Walker wrote:
The dtrace profile of a 'pkg refresh --full' for the /dev repository
seems to indicate that vast majority of the time spent is in JSON
encode/decode.
Hm, okay. That's what I'd understood, but writing the object I'd just
loaded in takes a second and a half on my x86 box, while an image create
takes about a minute, most of which is spent with "Caching catalog ..." as
the status. Perhaps encoding the catalog as a JSON object is the slowdown,
or perhaps I'm timing the wrong thing, but somewhere the two don't compare
properly, which is confusing.
Yes, encoding the catalog as a JSON object (which is part of what
Caching catalogs... does):
http://cr.opensolaris.org/~swalker/dtrace_refresh.txt
Here's one for image-create too:
http://cr.opensolaris.org/~swalker/dtrace_image_create.txt
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss