Implement a hash_map and swap gss over to use it, making self-compilation 10 seconds faster on my laptop. captain.sh has been extended with the ability to bootstrap over any number of git commits.

This commit is contained in:
Nathan Braswell
2016-04-22 02:58:14 -04:00
parent 5a7a1d3b3c
commit bfc3b72b00
4 changed files with 93 additions and 40 deletions

View File

@@ -95,8 +95,8 @@ obj pair<T,U> (Object, Serializable, Hashable) {
return second_pair.second
}
/*fun hash():int return hash(first) ^ hash(second)*/
fun hash():int return 0
fun hash():int return hash(first) ^ hash(second)
/*fun hash():int return 0*/
// the old unnecessary template to prevent generation
// if not used trick (in this case, changing out U with V)