![]() |
|
|
#496 | |
|
"Ben"
Feb 2007
67028 Posts |
Quote:
If enough people think its annoying, I'll remove it. |
|
|
|
|
|
|
#497 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
2×5,393 Posts |
Quote:
Code:
C:\> COPY FILE1.TXT FILE2.TXT BOTH.TXT Code:
% cat file1 file2 > both Paul |
|
|
|
|
|
|
#498 |
|
"Ben"
Feb 2007
2·3·587 Posts |
We often need to append one or more smallish files to a very large file. Doing this with copy is slow because it has to copy the large file as well as the smaller ones. cat with ">>" is much faster because only the smaller files need to be streamed.
|
|
|
|
|
|
#499 | |
|
Sep 2010
Portland, OR
1011101002 Posts |
Quote:
|
|
|
|
|
|
|
#500 |
|
Jun 2003
5,087 Posts |
Have you tried the "copy a+b" syntax? Or "type a >> b" syntax?
|
|
|
|
|
|
#501 |
|
Oct 2004
Austria
2·17·73 Posts |
it seems that copy doesn't work in a windows 7 "dos window" - at least it didn't work for me.
|
|
|
|
|
|
#502 |
|
Jan 2009
Bilbao, Spain
283 Posts |
Hi Andi.
Do you try copy file1.txt+file2.txt both.txt? |
|
|
|
|
|
#503 |
|
Oct 2004
Austria
2×17×73 Posts |
No, I did try something like copy *.out msieve.dat
where *.out are the outputfiles of the current NFS factorization. (manually adding a file named 0.out which contains the line N <my number>, the name "0.out should make sure that it goes to the very beginning of the msieve.dat file.) Edit: This works in windows XP, but not in windows 7. (now I copied a cat.exe into the directory where I concatenate my outputfiles and use cat *.out >>msieve.dat) Last fiddled with by Andi47 on 2011-01-04 at 11:17 Reason: additional info |
|
|
|
|
|
#504 |
|
"Ben"
Feb 2007
2·3·587 Posts |
I tried "type a >> b" first and got miserable performance. The fgets/fputs loop I wrote is faster than type. Yesterday was the first time I tried "copy a+b", simply because I had a mindset of _appending_ data, not copying it. But to append data I can't see a way around specifying the larger file in the input list to copy - which is wasted effort.
The whole issue isn't really a big deal. Appending data files is a negligible portion of the runtime of a nfs factorization. I'll remove the prompt for unxutils... |
|
|
|
|
|
#505 |
|
"Ben"
Feb 2007
2·3·587 Posts |
Binaries and source code available here.
Changes include: + A new tune() function which measures the speed of several siqs and gnfs factorizations and computes regression curves for a particular computer. This info is used to estimate the amount of pretesting to do before siqs or nfs (ecm, pp1, pm1, etc.) as well as determine the optimal siqs/nfs crossover point. The yafu.ini file is automatically updated to track regression information for (optionally) multiple systems. Tune should take about a half hour to an hour to run, depending on your system. + new flags. ecm_qs_ratio and ecm_gnfs_ratio allow one to specify the target time ratio of pretesting to siqs or gnfs respectively. the noecm flag forces ecm to be skipped entirely. + tweaks to factoring via NFS. reporting to logfile, small prime divisibility and primalty checks, screen info, etc + bug fixes including a fix for this, and for an issue reported via email. Thanks lorgix and W. Ferguson! + gmp-ecm messages are now printed at a verbosity level equal to 2 less than the yafu verbosity level. for example, yafu started with options -v -v -v -v prints any gmp-ecm messages at verbosity level -v -v Any issues, let me know. - ben. |
|
|
|
|
|
#506 |
|
Sep 2010
Scandinavia
3·5·41 Posts |
Let's try it out!
sigma = 1940137128 completes the factorization of 198^198*4+1. |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running YAFU via Aliqueit doesn't find yafu.ini | EdH | YAFU | 8 | 2018-03-14 17:22 |
| YAFU-1.34 | bsquared | YAFU | 119 | 2015-11-05 16:24 |
| Yafu bug. | storflyt32 | YAFU | 2 | 2015-06-29 05:19 |
| yafu-1.33 | bsquared | YAFU | 12 | 2012-11-08 04:12 |
| yafu-1.32.1 | bsquared | YAFU | 21 | 2012-09-04 19:44 |