all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6996: `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?
@ 2010-09-07 21:33 MON KEY
  2010-09-07 23:29 ` Glenn Morris
       [not found] ` <handler.6996.B.128389509415467.ack@debbugs.gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: MON KEY @ 2010-09-07 21:33 UTC (permalink / raw)
  To: 6996

`byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?

Following files:
 src/bytecode.c
 lisp/emacs-lisp/bytecomp.el

define the variables `byte-code-meter', `byte-metering-on' and a function
`byte-compile-report-ops'.

there is this comment in bytecomp.el
 ";;; report metering (see the hacks in bytecode.c)"

I can't find reference to these anywher in docs, archives, etc.
What do these things do?

(byte-compile-report-ops)
=> Debugger entered--Lisp error: (void-variable byte-code-meter)

--
/s_P\





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

* bug#6996: `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?
  2010-09-07 21:33 bug#6996: `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they? MON KEY
@ 2010-09-07 23:29 ` Glenn Morris
       [not found] ` <handler.6996.B.128389509415467.ack@debbugs.gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2010-09-07 23:29 UTC (permalink / raw)
  Cc: 6996-done


MON KEY wrote (on Tue, 7 Sep 2010 at 17:33 -0400):

> `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?
> 
> Following files:
>  src/bytecode.c
>  lisp/emacs-lisp/bytecomp.el
> 
> define the variables `byte-code-meter', `byte-metering-on' and a function
> `byte-compile-report-ops'.

From src/bytecode.c:

#ifdef BYTE_CODE_METER
  DEFVAR_LISP ("byte-code-meter", &Vbyte_code_meter,...
...
#endif

In the comments in the same file:

  define BYTE_CODE_METER to enable generation of a byte-op usage
  histogram.

So if you are interested, why not define it, re-build and see what
happens?

I have no idea what it does, but since it is not on by default since
1991, and is not documented anywhere, I don't see it as a bug if it
doesn't do whatever it is supposed to do. At the worst it is dead code
that could be deleted.





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

* bug#6996: Acknowledgement (`byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?)
       [not found] ` <handler.6996.B.128389509415467.ack@debbugs.gnu.org>
@ 2010-09-08  7:30   ` MON KEY
  2010-09-08  9:15     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: MON KEY @ 2010-09-08  7:30 UTC (permalink / raw)
  To: 6996

> I have no idea what it does,

If you don't I doubt few others do either, maybe Jim Blandy?

> but since it is not on by default since 1991,

That's nearly 20 years ago!

> and is not documented anywhere, I don't see it as a bug if it
> doesn't do whatever it is supposed to do.

Its a bug b/c bytecomp.el exposes/provides it.

> At the worst it is dead code that could be deleted.

At the very least there must be _some_ reason the code has
persisted... Hence, my tepid curiosity.

--
/s_P\





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

* bug#6996: Acknowledgement (`byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?)
  2010-09-08  7:30   ` bug#6996: Acknowledgement (`byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?) MON KEY
@ 2010-09-08  9:15     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2010-09-08  9:15 UTC (permalink / raw)
  To: MON KEY; +Cc: 6996

>> At the worst it is dead code that could be deleted.
> At the very least there must be _some_ reason the code has
> persisted... Hence, my tepid curiosity.

From the description it was code that tried to figure out which
byte-codes were used more often.  Probably this was used at some point
to help decide which byte-code to add/keep as well as how much to
optimize paticular byte-codes.


        Stefan





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

end of thread, other threads:[~2010-09-08  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-07 21:33 bug#6996: `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they? MON KEY
2010-09-07 23:29 ` Glenn Morris
     [not found] ` <handler.6996.B.128389509415467.ack@debbugs.gnu.org>
2010-09-08  7:30   ` bug#6996: Acknowledgement (`byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?) MON KEY
2010-09-08  9:15     ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.