Re: Reduce GWT (MD5) file names size
At one time there was a feature request for this very thing: http://code.google.com/p/google-web-toolkit/issues/detail?id=686 It seemed that Google Page Creator truncated filenames that were longer than a certain length. Since page creator has been deprecated, it may no longer be relevant, but someone should at least check that the filenames that GWT creates works with Google Sites. The 7 bytes isn't so much the problem as the length of the filename. What was the underlying reason for Google Pages to truncate the name? Is this a problem elsewhere too? -jason On Dec 11, 2008, at 7:48 PM, Sumit Chandel wrote: Hi Pawel, It seems that the suggested changes to the md5 hash would lead to a saving of 7 bytes per application load for a given client. Every byte counts, but I'm not sure if the number of bytes saved in this case would be worth spending engineering time to implement in GWT. My suggestion would be to create an issue report for this on the Issue Tracker, and better yet, if you could put together a patch that the team could use and attach it to the issue, I would be sure to forward it over to someone on the team to take a look at it. Here's a link to the Issue Tracker: http://code.google.com/p/google-web-toolkit/issues/list Let me know if you do post up an issue and I'll look into getting it on the radar. Hope that helps, -Sumit Chandel On Sun, Dec 7, 2008 at 6:38 AM, Pawel Jurski paweljur...@gmail.com wrote: Hi, I'm wondering if we can reduce GWT (MD5) file name size by converting md5 hexadecimal number to something with bigger radix. Simple example: 1) BigInteger bi = new BigInteger (d41d8cd98f00b204e9800998ecf8427e, 16); System.out.println(MD5HEX: d41d8cd98f00b204e9800998ecf8427e \nDEC: + bi.toString() + \nMAX_RADIX: + bi.toString(Character.MAX_RADIX) + \nMD5HEX: + new BigInteger(bi.toString(Character.MAX_RADIX), Character.MAX_RADIX).toString(16)); 2) MD5HEX: d41d8cd98f00b204e9800998ecf8427e DEC:281949768489412648962353822266799178366 MAX_RADIX: ck2u8j60r58fu0sgyxrigm3cu MD5HEX: d41d8cd98f00b204e9800998ecf8427e It should reduce file name size for about 7 characters. Maybe is not too late for that. -- Regards, Pozdrowienia Pawel. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Reduce GWT (MD5) file names size
Hi Pawel, It seems that the suggested changes to the md5 hash would lead to a saving of 7 bytes per application load for a given client. Every byte counts, but I'm not sure if the number of bytes saved in this case would be worth spending engineering time to implement in GWT. My suggestion would be to create an issue report for this on the Issue Tracker, and better yet, if you could put together a patch that the team could use and attach it to the issue, I would be sure to forward it over to someone on the team to take a look at it. Here's a link to the Issue Tracker: http://code.google.com/p/google-web-toolkit/issues/list Let me know if you do post up an issue and I'll look into getting it on the radar. Hope that helps, -Sumit Chandel On Sun, Dec 7, 2008 at 6:38 AM, Pawel Jurski paweljur...@gmail.com wrote: Hi, I'm wondering if we can reduce GWT (MD5) file name size by converting md5 hexadecimal number to something with bigger radix. Simple example: 1) BigInteger bi = new BigInteger (d41d8cd98f00b204e9800998ecf8427e, 16); System.out.println(MD5HEX: d41d8cd98f00b204e9800998ecf8427e \nDEC: + bi.toString() + \nMAX_RADIX: + bi.toString(Character.MAX_RADIX) + \nMD5HEX: + new BigInteger(bi.toString(Character.MAX_RADIX), Character.MAX_RADIX).toString(16)); 2) MD5HEX: d41d8cd98f00b204e9800998ecf8427e DEC:281949768489412648962353822266799178366 MAX_RADIX: ck2u8j60r58fu0sgyxrigm3cu MD5HEX: d41d8cd98f00b204e9800998ecf8427e It should reduce file name size for about 7 characters. Maybe is not too late for that. -- Regards, Pozdrowienia Pawel. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Reduce GWT (MD5) file names size
Hi, I'm wondering if we can reduce GWT (MD5) file name size by converting md5 hexadecimal number to something with bigger radix. Simple example: 1) BigInteger bi = new BigInteger (d41d8cd98f00b204e9800998ecf8427e, 16); System.out.println(MD5HEX: d41d8cd98f00b204e9800998ecf8427e \nDEC: + bi.toString() + \nMAX_RADIX: + bi.toString(Character.MAX_RADIX) + \nMD5HEX: + new BigInteger(bi.toString(Character.MAX_RADIX), Character.MAX_RADIX).toString(16)); 2) MD5HEX: d41d8cd98f00b204e9800998ecf8427e DEC:281949768489412648962353822266799178366 MAX_RADIX: ck2u8j60r58fu0sgyxrigm3cu MD5HEX: d41d8cd98f00b204e9800998ecf8427e It should reduce file name size for about 7 characters. Maybe is not too late for that. -- Regards, Pozdrowienia Pawel. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---