[dylan-lang/melange] da649d: Performance improvement: source-location

GitHub <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <555772fa21925_70fb3ff5370ed2bc2541b@hookshot-fe4-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/melange
  Commit: da649d69710a85549d538a78ede839c658af9391
      https://github.com/dylan-lang/melange/commit/da649d69710a85549d538a78ede839c658af9391
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-05-16 (Sat, 16 May 2015)

  Changed paths:
    M melange-core/c-lexer.dylan

  Log Message:
  -----------
  Performance improvement: source-location

This changes a test case from taking about 20 seconds to roughly
6.5 seconds.

* melange-core/c-lexer.dylan: Apply extra type annotations in source-location
    to reduce dispatch.


  Commit: 9a5c6688772f4fb12839648769c9b7ecd3e49e53
      https://github.com/dylan-lang/melange/commit/9a5c6688772f4fb12839648769c9b7ecd3e49e53
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-05-16 (Sat, 16 May 2015)

  Changed paths:
    M melange-core/c-lexer.dylan

  Log Message:
  -----------
  Performance improvement: source-location

This time, we add a type check to lift some dispatch out of the
loop. We know it should be working with <integer> values, so
make that clear to the compiler.


Compare: https://github.com/dylan-lang/melange/compare/a51ce9f08c92...9a5c6688772f

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.