Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: Append the content of file to another one 
without checking for duplicate lines
Author: jbdenis
Link to topic: https://cfengine.com/forum/read.php?3,26711,26803#msg-26803

I'm talking about a "file_preserve_block" value for the insert_type attribute 
in insert_lines promise. 

> Just create a test using a, say, three-line file with one duplicated line and 
> insert that into a selected region. 
> If it works with a small block, it should >behave identically with a large 
> block.

Maybe I didn't understand your message ?

That's what I did and it works with a small and big block, the problem is the 
execution time since each line of the file I want to insert generates an 
insert_lines promise (hence checking for duplicate). Try to insert a 1MB file 
into another one (even without the location stuff) and mesure the execution 
time. See my initial post for an exemple.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to