Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   enable dual core? (http://forums.winamp.com/showthread.php?t=249487)

n0On3 23rd June 2006 23:53

enable dual core?
 
is there a way to make makensis.exe use both cores? is this planned for the future?

thanks

onad 27th June 2006 16:18

What make you think it does not yet already?

BTW
What whould be the exact use of controlling this behaviour ?

Joost Verburg 27th June 2006 18:15

Compression should be multi-threaded to use both cores, that's not a simple thing.

n0On3 27th June 2006 19:56

Quote:

Originally posted by onad
What make you think it does not yet already?

BTW
What whould be the exact use of controlling this behaviour ?

well, it's not dual core because the task manager shows it's only using one. And using dual cores would speed up compressing.

Quote:

Originally posted by Joost Verburg
Compression should be multi-threaded to use both cores, that's not a simple thing.
ok, it's not simple, but it may help that 7-zip already does multi-threaded lzma compression.

JasonFriday13 27th June 2006 22:23

Hmmm, we have just gone from dual core to threads :igor:. Yeah, it shouldn't be too hard to add support to NSIS to compress using two threads (if hyperthreading or dual processors is available).

onad 28th June 2006 16:58

If testing your script is the speed problem of makensis use something along the lines off:

...

!define IWANTTODEBUG

...

!ifdef IWANTTODEBUG
SetCompressor off
!else
SetCompress lzma
!endif

...

this will speed up your script development a lot...

JasonFriday13 28th June 2006 22:56

Also if you want to put this around your file commands:

!ifndef IWANTTODEBUG

;Put all your files here:

!endif

Afrow UK 29th June 2006 12:49

It won't have to be re-written to be multi-threaded anyway, as AMD's Reverse Hyper-Threading which will be released through Windows Update will allow one thread to use both processors in a dual-processor CPU. That is what I've read anyway ;)

-Stu

bl4d3 15th August 2007 23:10

hi,
last post here was from last year and there were a lot of changes since then. i recognize with amd fx cpu and vista 32-bit that the compiler still not use both cores. according to taskmanager it stops at 50% which is one of two cores.

is there a planning for bring support for multiple cores, maybe in next release of nsis?

think about how fast the compiler could be on a quad core machine.. :D

Afrow UK 15th August 2007 23:32

That thing about AMD was a load of cobblers.
The TODO list on the CVS repository is over 11 months old so I'm not sure what's next for NSIS.

Stu

kichik 16th August 2007 19:04

The next version of the LZMA SDK supports multithreading. Once it leaves beta, I'll include and that should add free multithreading for LZMA compression.

Making the entire compiler multithreaded would require much more work. It's planned, but there are a lot of plans.

Afrow UK 16th August 2007 22:38

Cool!

Stu

amckern 3rd February 2008 08:38

Quote:

Originally posted by kichik
The next version of the LZMA SDK supports multithreading. Once it leaves beta, I'll include and that should add free multithreading for LZMA compression.

Making the entire compiler multithreaded would require much more work. It's planned, but there are a lot of plans.

Thanks!

Mad Doggie 2nd August 2009 15:23

Quote:

Originally posted by kichik
The next version of the LZMA SDK supports multithreading. Once it leaves beta, I'll include and that should add free multithreading for LZMA compression.
Did anything happen with this?

Cheers!

kichik 2nd August 2009 16:19

I tried integrating the new version but it wasn't a simple drop-in replacement, so after a few hours I left it and never got to it since.

Mad Doggie 4th August 2009 03:15

Quote:

Originally posted by kichik
I tried integrating the new version but it wasn't a simple drop-in replacement, so after a few hours I left it and never got to it since.
That's unfortunate. With all of the multi-core boxes out there, I think this would be a great feature. I regularly compile installers with 100+ MB of source files, and it's sad to have three of my four cores idle when doing so.

Cheers!

Luke

dandaman32 4th August 2009 03:29

Try using CopyFiles, SetCompress off, or building "skeleton" installers that include all the logic but don't actually install any data. I tend to go with the skeleton installers, to reduce disk I/O and make the actual installation process go faster as well as the compilation.

-Dan


All times are GMT. The time now is 17:25.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.