Feedback on NI Community

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Avatars

While working on a little side project, I have created a few library functions that makes it easy to scour certain information from the forums. It could be my imagination, but since the forum upgrades, it has been more noticeable that long threads load more slowly/incrementally. One of my best guesses as to why things are running slow is User Avatars.... especially externally linked User Avatars.

 

Historically, it was necessary to externally host images (or do the little hack where you upload your image as an attachment, then come back and edit the post to include the hyperlink of your newly-uploaded image) in order to show images inline on threads. For the past two years or so, with the advent of the image gallery and the image insertion button on the post edit toolbar, the need to link externally is diminished (especially for avatars, a static image you upload once and forget about).

 

So, I made this assumption: the top 1000 Kudoed posters are probably some of the most chatty members on the forums, meaning their Avatar Icons will show up the most often. Here are the statistics on download performance for the top 1000 users' avatars. Each avatar was downloaded 7 times in random order (using AQ's recently released "Randomize 1D Array"), and the arithmetic mean of the five fastest times was used in all statistics:

 

17517i0FE89FB953EA2329

 

 

17521i907F8EAF7DC62C05

 

 

 

Observations


 

  1. forums.ni.com is spot-on in terms of predictability and speed
  2. forums.ni.com is faster than 75% of other hosts, oftentimes over twice as fast (note: vertical logarithmic scale)
  3. Generally, images less than 10 or 20kB take about the same amount of time to download. For reference, the forum-provided avatar selection library has images that are about 2kB.
  4. 146 out of 1000 who have chosen to use an externally hosted image
  5. 112 of 1000 users have avatars "slow to download" - beyond the 200msec "knee" of performance that ni.forums.com hosting provides, either due to a slower external host or a large avatar filesize
  6. At least 12 users have avatars with broken or unreachable links. NOTE: This number is much higher at many people's workplace due to corporate web filters!!
  7. Only 30 out of 1000 have a "large" avatar that is greater than 20kB (which also generally corresponds to the "slow" download of >200msec)
  8. Many users have avatars that are much greater than 36x36 pixels. (actually, since the recent forum upgrade, 72x72 should be the standard since that's what's shown on the User Profile)

 

 

Suggestions

 

  1. Only allow ni.forums.com for avatar hosting.
  2. Send an email to those with externally linked images saying that their avatar will be reset to a default avatar after 90 days. Give instructions on how to upload the avatar to forums.ni.com. This guarantees everyone's forum experience is faster and the image will not be unreachable.
  3. Impose a limit on avatar size, such as 20kB or 50kB or 100kB so.
  4. In the least, send an email to those with really, really slow external hosts, or extra large images
  5. If you are still reading this post on this particular forum and you are on one of the "slow" lists, go ahead and do some optimizing! We'll all appreciate your effort!!
  6. Use this thread as a "resize request" thread if you're unsure how to optimize your avatar for speed. (I remember a post by altenbach where he helped someone dramatically decrease the size of his image... I think it was CCFrog, but I can't find the thread). I will gladly help resize!
One example of a user who recently DRAMATICALLY decreased the size of his avatar is muks - even though the red/white globe is still on the "larger" side, it downloads much faster than the old blue/green globe! Thanks, muks!
Attached is the result of the scraping VI with all data "Set As Default" on the front panel. Feel free to do your own analysis and post it if you find something interesting! Smiley Wink
Message 1 of 28
(8,317 Views)

Attached are 3 lists dealing with avatar performance. If you're interested, check if you are one who has a slow image, a large image, or an externally hosted image.

0 Kudos
Message 2 of 28
(8,316 Views)

Very interesting post.

 

I know those people with the broken links can definitely cause some slow page loadings.  I hope your posts will cause some people to look at their icon file size and consider hosting it on the icons thread or their image library rather than a 3rd party server.  I know I've redirected a handful of people of the the years to do that when they had broken links.

 

I decided to search your Top1000User VI to find my name.  I started with searching for Ravens Fan and was surprised it didn't come up.

 

So I searched for my UserID and found it.  That's when I noticed something very odd.  In the cluster element for my username, the letters of the username were interspersed with null characters (00 hex), although they didn't appear that within the array of clusters.  (See attached snippet).  EDIT:  I converted file from snippet to plain .png image since the data in the snippet made a huge .png file)

 

This expained why doing a string comparison didn't find it.  But does anyone know why null characters would suddenly show up in the cluster element?

 

 

 

0 Kudos
Message 3 of 28
(8,310 Views)

Ravens, I have used LabVIEW's Unicode encoding for usernames (UTF-16). This allows all usernames to show up properly, including the following:

 

17523i158D23A5C2F387A5

 

Perhaps, one of these days, I should make an Idea for LabVIEW to adopt the more ubiquitous UTF-8 encoding! It's not a straightforward task juggling between ASCII, UTF-16, and UTF-8.

 

PS - Ravens, you're one of the few people who has uploaded a custom image SMALLER than 36x36px! I would encourage you (and only you!) to get a larger picture! Smiley Very Happy

0 Kudos
Message 4 of 28
(8,305 Views)

PPS - And your comment "it doesn't appear that way above..." ... yes it does, turn on "Hex" display on the indicator, and you'll see the padded bytes.

0 Kudos
Message 5 of 28
(8,304 Views)

You're right.  The string in the array of cluster does show the 00 when in hex mode.  It didn't show up in normal mode or even /code mode.

 

The Unicode explanation makes sense.

 

I guess now my question is, how did you make the string element in the cluster array handle the Unicode as  UTF 16, but when I index the array or unbundle that string element (and all indicators were created by Right click Create Indicator) it changes the way it handles that particular string element shows up and shows all the individual bytes.

 

It seems like you have a pretty good knowledge of how to do that juggling.  And it is probably something I will never need to worry about since I am not ever going to deal with those foreign languages that need to have extended character sets.  I'm just curious as to what the hidden secret is to how LabVIEW handled the Unicode to begin with, and am wondering if it is a bug that the index array essentially broke the way that unicode string was handled and displayed.

 

I'll work on upgrading that image.  I think I made it 32 x 32 when I did it because I thought I had read about that size somewhere.  But searching for it now, I might have confused that number with the LabVIEW icon size.

0 Kudos
Message 6 of 28
(8,301 Views)

Wow Jack - this is great analysis!

 

One thing I can help with is contacting users that have avatars that take the longest to download.  In fact, soon Lithium will be changing the way our images are hosted behind the scenes making the images hosted on the forums hopefully download even faster so the effect may be even more noticeable.

 

Can you send me a list of the IDs / aliases of users with the slower avatars?

 

Thanks,

Laura

 

 

 

 

0 Kudos
Message 7 of 28
(8,245 Views)

@Laura F. wrote:

Wow Jack - this is great analysis!

 

One thing I can help with is contacting users that have avatars that take the longest to download.  In fact, soon Lithium will be changing the way our images are hosted behind the scenes making the images hosted on the forums hopefully download even faster so the effect may be even more noticeable. Awesome!

 

Can you send me a list of the IDs / aliases of users with the slower avatars? Yes, I'll upload it later.

 

Thanks,

Laura

 

 

 

 


 

0 Kudos
Message 8 of 28
(8,242 Views)

What do Avatars hosted on Pandora do to thread loading? 🙂

 

http://en.wikipedia.org/wiki/Avatar_(2009_film)

 

Interesting find Jack!

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 9 of 28
(8,237 Views)

Attached is a plain text list of all users with avatar "issues" (I use this term very loosely...). Keep in mind, this is only the top 1000 Kudoed users, which represents only a fraction of one percent of all forum users. 

 

Laura, you have better access to the data - could you query something like SELECT username WHERE avatar_url LIKE 'forums.ni.com'? Or better, does Lithium give front-end tools to generate reports on user data such as this? This would be a simpler way to figure out who uses externally hosted avatars.

 

(By the way, I know this whole thing is not tops on your priority list right now...)

 

Finally, as if I have not made enough emphasis, here's how freaking good and consistent forums.ni.com performs. The small box I have drawn encompasses 800 of the top 1000 users.

 

17613i323B941A85C28401

 

Message 10 of 28
(8,228 Views)