[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

fsfs get revision root

From: Chia-liang Kao <clkao_at_clkao.org>
Date: 2005-03-22 09:24:59 CET

Hi,

I just found that the line:

    my $root = $fs->revision_root ($rev);

on a fsfs backend causes two open/read syscalls in raw:

   990 perl CALL open(0x80ea5e0,0,0x1b6)
   990 perl NAMI "/home/clkao/.svk/local/db/revs/2369"
   990 perl RET open 9
   990 perl CALL fstat(0x9,0xbfbfe2d0)
   990 perl RET fstat 0
   990 perl CALL lseek(0x9,0,0x8cdc,0,0)
   990 perl RET lseek 36060/0x8cdc
   990 perl CALL lseek(0x9,0,0x8c9c,0,0)
   990 perl RET lseek 35996/0x8c9c
   990 perl CALL read(0x9,0x80eb018,0x1000)
   990 perl RET read 64/0x40
   990 perl CALL lseek(0x9,0,0x83d0,0,0)
   990 perl RET lseek 33744/0x83d0
   990 perl CALL read(0x9,0x80eb018,0x1000)
   990 perl RET read 2316/0x90c
   990 perl CALL close(0x9)
   990 perl RET close 0

   990 perl CALL open(0x80ec300,0,0x1b6)
   990 perl NAMI "/home/clkao/.svk/local/db/revs/2369"
   990 perl RET open 9
   990 perl CALL lseek(0x9,0,0x83d0,0,0)
   990 perl RET lseek 33744/0x83d0
   990 perl CALL read(0x9,0x83bd018,0x1000)
   990 perl RET read 2316/0x90c
   990 perl CALL close(0x9)
   990 perl RET close 0

Note that the second open seeks and reads exactly the same content as
the last read in the previous open. It would be good if we can avoid
the second open/read.

Cheers,
CLK

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 22 09:28:34 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.