Alexander Leidinger

Just another weblog


Remov­ing super­flous calls to basename/dirname in

I just sub­mit­ted my patch to remove calls (exec()ing) to basename/dirname in to GNATS. I didn’t time if this improves any­thing, but I assume doing a regex replace­ment in a make-variable uses less resources than doing a fork()&exec() or a sys­tem() call.

I don’t think this gives a huge improve­ment at all, it’s maybe even below the mea­sure­ment thresh­old, but hey, why using exter­nal tools if the inter­nal fea­tures are enough to do what you want? At least this patch is recorded now somewhere…

GD Star Rat­ing
GD Star Rat­ing

Tags: , , , , , , , ,

No Responses to “Remov­ing super­flous calls to basename/dirname in”

Leave a Reply