Mailinglist Archive: opensuse-buildservice (233 mails)

< Previous Next >
Re: [opensuse-buildservice] frontend does too much when uploading a file
  • From: Marcus Rueckert <darix@xxxxxxxxx>
  • Date: Fri, 30 May 2008 16:01:34 +0200
  • Message-id: <20080530140134.GZ4336@xxxxxxxxxxxxxxxxxxxxxxx>
On 2008-05-30 15:11:31 +0200, Marcus Hüwe wrote:
during a file upload the frontend performs superfluous (IMHO) tasks like
sending the package metadata (which doesn't change during the upload) to
the backend etc.
The problematic method is "update_timestamp" in the Package() class (see
models/package.rb). Instead of simply updating some timestamp tables it
regenerates the complete metadata.
I attached a small patch which _only_ updates the timestamp without touching
any metadata.
Btw. with this patch we gain a small perfomance boost:
- executing the old version takes around 2.81 seconds
- executing the new version takes around 1 second
(measured with ruby's 'profiler' module)

does your version update the timestamp in the backend aswell?


openSUSE - SUSE Linux is my linux
openSUSE is good for you
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups