Alexander Leidinger

Just another weblog

Sep
01

Remov­ing super­flous calls to basename/dirname in bsd.port.mk

I just sub­mit­ted my patch to remove calls (exec()ing) to basename/dirname in bsd.port.mk 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
load­ing…
GD Star Rat­ing
load­ing…
Share/Save

Tags: , , , , , , , ,

No Responses to “Remov­ing super­flous calls to basename/dirname in bsd.port.mk”

Leave a Reply