Re: [PATCH 3/6] tools/kvm_stat: cache compiled regular expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15.02.2018 08:32, Janosch Frank wrote:
> On 14.02.2018 22:45, Stefan Raspl wrote:
>> From: Stefan Raspl <stefan.raspl@xxxxxxxxxx>
>>
>> Should save us a couple of cycles.
> 
> Are you sure, the wiki says otherwise?
> 
> 
> Note
> 
> The compiled versions of the most recent patterns passed to re.match(),
> re.search() or re.compile() are cached, so programs that use only a few
> regular expressions at a time needn’t worry about compiling regular
> expressions.

True - must have missed that note :O
In that case, we could probably do without this patch.

Ciao,
Stefan




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux