[Fusioninventory-devel] Inventory fonts

David Durieux d.durieux at siprossii.com
Wed Apr 3 14:55:07 UTC 2013


Le 2013-04-03 16:37, Gonéri Le Bouder a écrit :
> On Wed, Apr 03, 2013 at 04:28:35PM +0200, David Durieux wrote:
>> Le 2013-04-03 16:08, Gonéri Le Bouder a écrit :
>> >On Tue, Apr 02, 2013 at 08:06:43PM +0200, Guillaume Rousse wrote:
>> >>Le 02/04/2013 17:54, David Durieux a écrit :
>> >
>> >As Kévin said, I think Collect
>> >( 
>> http://www.fusioninventory.org/documentation/dev/spec/api/rest-collect/
>> >)
>> >is the way to go. Espcially "findFile".
>>
>> I have tried some minutes ago my code to get all files with .ttf and 
>> .otf
>> parse them with Font::TTF (because compiled) to extract 
>> manufacturer, real
>> name of font and version use less than 1 second.
> Good for you.
>
>> With "findFile", it use more than 2 minutes (stopped before end of 
>> task) and
>> so only to get files
> That's not the point.
>  - findFile aims to be generic exactily to avoid situation like this 
> one
>    where everyone start a new module as soon as a new need arise
>  - findFile specification has been started a last 12 months ago and I 
> got
>    zero feedback from you during these 12 months
>  - performance can be improved by depending on "locate" and friends.
>
> Best regards,
> --
>     Gonéri


I think it's same problem than code added some months ago for licenses 
in agent + plugin, it's really specific and very hard to get data in 
rest-collect

David



More information about the Fusioninventory-devel mailing list