getRoomIDbyHash feature request

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

Re: getRoomIDbyHash feature request

Post by Vadi » Wed Jan 01, 2014 9:56 pm

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: 920
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: getRoomIDbyHash feature request

Post by SlySven » Thu Jan 02, 2014 11:19 pm

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: 4724
Joined: Sat Mar 14, 2009 3:13 pm

Re: getRoomIDbyHash feature request

Post by Vadi » Fri Jan 03, 2014 9:10 pm

Yes, Aardwolf.de sends room hashes, IIRC.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests