Old 23rd June 2006, 23:53   #1
n0On3
Senior Member
 
n0On3's Avatar
 
Join Date: Jan 2001
Location: Barcelona
Posts: 314
Send a message via ICQ to n0On3
enable dual core?

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

thanks
n0On3 is offline   Reply With Quote
Old 27th June 2006, 16:18   #2
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
What make you think it does not yet already?

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

"Just do it"
onad is offline   Reply With Quote
Old 27th June 2006, 18:15   #3
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Compression should be multi-threaded to use both cores, that's not a simple thing.
Joost Verburg is offline   Reply With Quote
Old 27th June 2006, 19:56   #4
n0On3
Senior Member
 
n0On3's Avatar
 
Join Date: Jan 2001
Location: Barcelona
Posts: 314
Send a message via ICQ to n0On3
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.
n0On3 is offline   Reply With Quote
Old 27th June 2006, 22:23   #5
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
Hmmm, we have just gone from dual core to threads . Yeah, it shouldn't be too hard to add support to NSIS to compress using two threads (if hyperthreading or dual processors is available).

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 28th June 2006, 16:58   #6
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Lightbulb

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...

"Just do it"
onad is offline   Reply With Quote
Old 28th June 2006, 22:56   #7
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
Also if you want to put this around your file commands:

!ifndef IWANTTODEBUG

;Put all your files here:

!endif

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 29th June 2006, 12:49   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 15th August 2007, 23:10   #9
bl4d3
Junior Member
 
Join Date: Jul 2007
Posts: 16
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..
bl4d3 is offline   Reply With Quote
Old 15th August 2007, 23:32   #10
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 16th August 2007, 19:04   #11
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 16th August 2007, 22:38   #12
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Cool!

Stu
Afrow UK is offline   Reply With Quote
Old 3rd February 2008, 08:38   #13
amckern
Junior Member
 
Join Date: Mar 2005
Location: Sydney, Australia
Posts: 29
Send a message via ICQ to amckern Send a message via AIM to amckern Send a message via Yahoo to amckern
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!
amckern is offline   Reply With Quote
Old 2nd August 2009, 15:23   #14
Mad Doggie
Junior Member
 
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
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!
Mad Doggie is offline   Reply With Quote
Old 2nd August 2009, 16:19   #15
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 4th August 2009, 03:15   #16
Mad Doggie
Junior Member
 
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
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
Mad Doggie is offline   Reply With Quote
Old 4th August 2009, 03:29   #17
dandaman32
Senior Member
 
dandaman32's Avatar
 
Join Date: Jan 2005
Location: Look behind you.
Posts: 209
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

ExperienceUI for NSIS | Latest project: Enano CMS
Do not PM me on the Winamp forums, I hardly ever check my messages here; you are more likely to get my attention through the ExperienceUI forum.
dandaman32 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump