getRoomIDbyHash feature request

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: getRoomIDbyHash feature request

Post by Vadi »

Collisions happen when different keys result in the same hash, not when the same key results in the same hash. Just so we aren't misinforming anyone...

User avatar
SlySven
Posts: 1023
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: getRoomIDbyHash feature request

Post by SlySven »

I may be a bit wide of the mark but IIRC, the documentation suggested that the hash was originally anticipated as something coming from the MUD server itself to uniquely identify the room which had a few more digits or non-digit(?) characters than a simple integer room number - and at a time when the room ID might have been an index into a C array the cost of having an index with several more digits than required (i.e. making the array a sparse one) - this would have caused a performance hit. :geek:

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: getRoomIDbyHash feature request

Post by Vadi »

Yes, Aardwolf.de sends room hashes, IIRC.

Post Reply