unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18752: 24.3.94; Why is Cygwin Emacs 2x quicker than Windows Emacs?
@ 2014-10-17 15:04 Fabrice Niessen
  2014-10-17 15:41 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Fabrice Niessen @ 2014-10-17 15:04 UTC (permalink / raw)
  To: 18752-ubl+/3LiMTaZdePnXv/OxA

Hello,

Maybe the test is partial -- even surely.  Though, I wonder why Cygwin
Emacs is 2 times quicker than its Windows counterpart to tangle an Org
file, and export it to HTML?

Observations:

- With the Widows binary "GNU Emacs 24.3.94.1 (i686-pc-mingw32) of
  2014-10-02" (compiled by Dani), it always takes around 2:35.

- With the Cygwin executable "GNU Emacs 24.3.93.1 (i686-pc-cygwin) of
  2014-08-15", it always just takes around 1:19 for the same operation.

Needless to say: same config file, same Org mode version (8.3beta from
Git), same machine, etc.

The file I used for the test is my Emacs configuration file, to be found
on https://github.com/fniessen/emacs-leuven/blob/master/emacs-leuven.txt.

The command I executed, and for which I took the above measures, is:

--8<---------------cut here---------------start------------->8---
    (defun org-save-buffer-and-do-related ()
      "Save buffer, execute/tangle code blocks, and export to HTML."
      (interactive)
      (let* ((orgfile (buffer-file-name))
             (base-name (file-name-base orgfile))
             (htmlfile (concat base-name ".html")))
        (save-buffer)
        (when (derived-mode-p 'org-mode)
          (let ((before-save-hook nil))
            (save-buffer))
          (org-babel-tangle)
          (when (file-exists-p htmlfile)
            (if (file-newer-than-file-p orgfile htmlfile)
                (org-html-export-to-html)
              (message "HTML is up to date with Org file"))))))
--8<---------------cut here---------------end--------------->8---

Would it make sense, I can make a video of them side by side...

Best regards.





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-10-18 19:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 15:04 bug#18752: 24.3.94; Why is Cygwin Emacs 2x quicker than Windows Emacs? Fabrice Niessen
2014-10-17 15:41 ` Eli Zaretskii
     [not found]   ` <86h9z2rb42.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2014-10-17 21:08     ` Fabrice Niessen
2014-10-17 22:12       ` Ken Brown
2014-10-18  5:42       ` Eli Zaretskii
     [not found]       ` <83wq7ydjc7.fsf@gnu.org>
     [not found]         ` <83wq7ydjc7.fsf-mXXj517/zsQ@public.gmane.org>
2014-10-18  6:51           ` Fabrice Niessen
     [not found]         ` <86zjctlvkv.fsf@example.com>
2014-10-18  7:19           ` Eli Zaretskii
2014-10-18 16:11           ` Dani Moncayo
2014-10-18 16:17             ` Eli Zaretskii
2014-10-18 16:25               ` Dani Moncayo
2014-10-18 17:35               ` Ken Brown
2014-10-18 17:46                 ` Eli Zaretskii
2014-10-18 19:25               ` Stefan Monnier
2014-10-18 19:34                 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).