about summary refs log tree commit diff
path: root/src/rt/rust_timer.cpp
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-01-18 15:23:11 -0500
committerGraydon Hoare <graydon@mozilla.com>2011-01-18 15:43:13 -0800
commit41b7d6d74da54b80419ab093303dd356fae957ec (patch)
treec382e32f867eae4b42aae8a9dcb8882e198211bf /src/rt/rust_timer.cpp
parente92298187bceb0cc1cf423dd37e0f5fe30359a17 (diff)
downloadrust-41b7d6d74da54b80419ab093303dd356fae957ec.tar.gz
rust-41b7d6d74da54b80419ab093303dd356fae957ec.zip
One last refactoring of the import handling:
* Create an import resolving stage. Currently this involves a copy of the ast,
  we can probably revisit this once we revisit doing full copies of the ast in
  general.

* Don't repeat work. Once we resolve a import, put it on a hash table and use
  it next time we are asked for it. This solves a O(n^2) behaviour in
  degenerated cases.

* Once import resolution is done, the target of an import is stored on the
  import itself.
Diffstat (limited to 'src/rt/rust_timer.cpp')
0 files changed, 0 insertions, 0 deletions