View Single Post
03/20/17, 06:01 PM   #25
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
I was not talking of time for encoding/decoding but length of the hash generated.

Building a Hash for something like this will require approx. :

1 char for versioning and addon recognition.
3 char for style knowledge with a code with a power of 2 value
per smithing tradeskill (*3) :
1 char for tradeskill = 3
1 char for skilllevel = 3
2 chars for traits with a code with a power of 2 value = 6
enchanting:
1 char for tradeskill
1 char for skilllevel / aspectlevel
3 chars (or 4, I dont remember count of aspect runes) for aspect.
3 chars for potency.
alchemy:
1 char for tradeskill
1 char for skilllevel
5 chars for flowers knowledge (maybe 6.; forget how much flowers we have precisly).
cooking:
1 char for tradeskill
1 char for skilllevel / aspectlevel
~190 chars approx. for all those recipes. (I've started with a base of 1500 recipes).

so a it should will be from 8 chars (a folk who knows only alchemy) to ~ 220 / 230 chars for everything.
mwokay, it's not as so big with a good compression (base 256 is powerful, I agree) after, I've shown the hash in the addon itself, so users can share them however they want. pushing the stuff in savedvars or displaying it in guild roster at the convenience of user is a good choice.
  Reply With Quote