Results 1 to 20 of 31

Thread: Deploy the huge QtWebKit4.dll

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deploy the huge QtWebKit4.dll

    Quote Originally Posted by SixDegrees View Post
    Why? What systems will this application be deployed on that will suffer from such resource usage?
    Competition between vendors involves some memory usage, package size, and more considerations.

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Deploy the huge QtWebKit4.dll

    Quote Originally Posted by ahmdsd_ostora View Post
    Competition between vendors involves some memory usage, package size, and more considerations.
    I find it hard to believe that a 15-20 MB application will make any difference on current hardware; it represents only a few percent, at most, of available memory even on tiny devices.

    At the end of the day, there's nothing you can do. Webkit is not modular, so you're stuck with the whole bundle. I'm just having a hard time believing that a few megabytes is either significant or important.

  3. #3
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deploy the huge QtWebKit4.dll

    Quote Originally Posted by SixDegrees View Post
    I find it hard to believe that a 15-20 MB application will make any difference on current hardware; it represents only a few percent, at most, of available memory even on tiny devices.

    At the end of the day, there's nothing you can do. Webkit is not modular, so you're stuck with the whole bundle. I'm just having a hard time believing that a few megabytes is either significant or important.
    maybe I think strangely due to my mobile development experience

  4. #4
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Deploy the huge QtWebKit4.dll

    Today's phones and other mobile devices have enormous amounts of memory available for applications - several hundred megabytes at a minimum.

    Before you spend a lot of time solving a problem, it's worthwhile determining whether the problem actually exists.

  5. #5
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deploy the huge QtWebKit4.dll

    Quote Originally Posted by SixDegrees View Post
    Today's phones and other mobile devices have enormous amounts of memory available for applications - several hundred megabytes at a minimum.

    Before you spend a lot of time solving a problem, it's worthwhile determining whether the problem actually exists.
    If you will guarantee that all the users who will use your application have the last models of your concerned platform, you won't think in resources then.

    It's some sort of "performance portability", or "portability of performance"

  6. #6
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Deploy the huge QtWebKit4.dll

    You're not convincing me that 15-20 MB is a problem.

    My first personal computer had 64k of memory, only half of which was available to applications. There are still a few of these around and working, but I don't bother constraining my applications to run on them.

    Once again, the answer at the end of the day is simple - you're out of luck. Webkit isn't modular, and doesn't allow you to make use of subsets of its library. If Webkit's size is a problem, you'll have to find some other way to do whatever it is you're working on.

  7. #7
    Join Date
    Jul 2010
    Posts
    21
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deploy the huge QtWebKit4.dll

    If you want to optimize your binaries for size on Win32, you might want to consider using the MS compiler. The size of the release version QtWebKit4.dll (Qt 4.6.3) is less than 10 MB when built with VS 2008.
    Last edited by hobbyist; 25th July 2010 at 17:41.

  8. #8
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Deploy the huge QtWebKit4.dll

    BTW - have you tried stripping your dynamic libraries and executables? This is commonly done for distributions in order to eliminate unneeded symbols. On Linux, you just say 'strip <object file>'; no idea how to accomplish this on other systems, but there's probably a utility available.I vaguely recall that qmake provides stripping capabilities, but we always did it manually.

    Note that this is not the functional stripping mentioned earlier; it simply removes unused symbols from the object's symbol table that aren't required at runtime.

  9. #9
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deploy the huge QtWebKit4.dll

    Quote Originally Posted by SixDegrees View Post
    BTW - have you tried stripping your dynamic libraries and executables? This is commonly done for distributions in order to eliminate unneeded symbols. On Linux, you just say 'strip <object file>'; no idea how to accomplish this on other systems, but there's probably a utility available.I vaguely recall that qmake provides stripping capabilities, but we always did it manually.

    Note that this is not the functional stripping mentioned earlier; it simply removes unused symbols from the object's symbol table that aren't required at runtime.
    is there any place to search in about this stripping on Windows?

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Deploy the huge QtWebKit4.dll

    I don't think Windows provides any means of stripping (I'd say DLLs are always "stripped" as only some symbols are exported). It's just removing visible symbol names and labels so don't expect any magic. My stripped version of WebKit is still 17MB in size (Linux/i686).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Deploy the huge QtWebKit4.dll

    "Vendors" tend to use WebKit more and more so compiling it statically into your application only makes your application larger without any benefits as WebKit may already be present on the target device.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Deploy the huge QtWebKit4.dll

    Quote Originally Posted by wysota View Post
    "Vendors" tend to use WebKit more and more so compiling it statically into your application only makes your application larger without any benefits as WebKit may already be present on the target device.
    But I cannot rely on this anyway, I should include it, so we reached the same point.

Similar Threads

  1. HUGE BUG in Windows Installation!!!
    By joandelason in forum Installation and Deployment
    Replies: 9
    Last Post: 22nd March 2010, 09:07
  2. How to compile my QtWebKit4.dll in Qt4.5
    By cspp in forum Installation and Deployment
    Replies: 1
    Last Post: 16th June 2009, 09:06
  3. Huge Text File
    By mcosta in forum Qt Programming
    Replies: 3
    Last Post: 11th January 2008, 19:23
  4. Huge tableview low performance
    By semoser in forum Qt Programming
    Replies: 9
    Last Post: 9th November 2006, 17:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.