Re: Anyone using GPG on VMS?
- From: JF Mezei <jfmezei.spamnot@xxxxxxxxxxxxx>
- Date: Tue, 17 Feb 2009 21:10:11 -0500
Malcolm Dunnett wrote:
while(getc(fp) != EOF)
vms_size++;
I had had the same problem years ago with ymodem. The PDA would time out
becaue it took the VMS side too long to calculate the size. And we're
not talking gigs here ! (a couple dozen Ks.
)
#include <unixio>\\
I modified the code that was in vvmodem.c :
long filestat(name)
char *name;
{
int fin;
long bytes = 0;
unsigned char buffer[2050];
long readbyt ;
if (fin = open(name, O_RDONLY,0))
{
while ((readbyt = read(fin,&buffer,2048)) > 0) bytes += readbyt ;
close(fin);
}
return bytes;
}
Basically doing 2k reads at a time, but going through normal text RMS
conversions to give accurate byte count with /n instead of 2 byte record
count of variable record length files.
This made a HUGE difference in performance.
Not sure which UAF/SYSGEN parameters would be needed to enable much
bigger read operations which would greatly reduce overhead. (oviously
bufquo , but is there another one that would be needed to eanble much
larger buffer s like 32k buffers or even bigger ?)
If you know the files are binary, then you can use RMS routines to get
the FAB and find out how many allocated blocks, and offset to EOF on the
last block to calculate number of bytes. You could then get file size
for humoungous files within a few microseconds (or few seconds on an all
mighty microvax II)
.
- References:
- Anyone using GPG on VMS?
- From: Malcolm Dunnett
- Re: Anyone using GPG on VMS?
- From: Steven Schweda
- Re: Anyone using GPG on VMS?
- From: Malcolm Dunnett
- Anyone using GPG on VMS?
- Prev by Date: Re: Anyone using GPG on VMS?
- Next by Date: Re: Anyone using GPG on VMS?
- Previous by thread: Re: Anyone using GPG on VMS?
- Next by thread: SSH bug report AXPVMS 8.3 TCPIP V5.6-9ECO3
- Index(es):
Relevant Pages
|