From: "Eric Schulte" <schulte.eric@gmail.com>
To: Seth Burleigh <wburle@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] python session speed vs non session
Date: Tue, 07 Sep 2010 16:41:41 -0600 [thread overview]
Message-ID: <87bp89xi9j.fsf@gmail.com> (raw)
In-Reply-To: AANLkTi=bXug1xn=CAy7q3O-rg+=dkKSNmLXE-d7CNAmw@mail.gmail.com
Hi Seth,
This is probably a combination of both the use of comint-mode which
indirects interaction with the python process through a temporary Emacs
buffer, in combination with the fact that Emacs must explicitly wait for
the interactive python process to return output until a special
"end-of-output" string has been received.
Dan has recently changed the session based evaluation for R to use a
different technique which doesn't require these explicit checks for an
"end-of-output" string which results in less clutter for the session
buffer and /potentially/ faster evaluation. I would like to look at the
possibility of converting some other languages to this new schema.
Sorry I can't point to a clear culprit. Best -- Eric
Seth Burleigh <wburle@gmail.com> writes:
> I have recently been trying out the src executing capabilities of orgmode. I
> have been confused why a python session takes significantly longer to
> execute than a non python session. For example
>
> #+begin_src python
> return 2+2
> #+end_src
>
> executes pretty quickly, but
> #+begin_src python :session test
> 2+2
> #+end_src
>
> executes twice as long. Looking at the command shell for python, it seems
> that the time is being taken to actually send the source to the command
> shell buffer. Once its sent (or once i can see it displayed in the command
> shell buffer) it immediately returns. Any ideas?
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2010-09-07 23:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-05 5:37 [babel] python session speed vs non session Seth Burleigh
2010-09-07 22:41 ` Eric Schulte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bp89xi9j.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wburle@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).