Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.47 KB | None | 0 0
  1. Should content ( images, videos, etc ) be served from a domain that is all digits so they load faster? [closed]
  2.  
  3. ----------------------------------------------------
  4.  
  5.  
  6. First we calculate that .com domains are likely to be faster and more secure due to extreme attention placed on it by the internet.
  7.  
  8. then we calculate that Digits must be faster than letters based on experiences from MYSQL.
  9.  
  10. then we discover that youtube created a domain name solely to serve images.
  11.  
  12. the question is.. should one get a domain name that is like this..
  13.  
  14. 000111011102.com
  15.  
  16. the goal here is to serve content from this URL.
  17.  
  18. so that images load faster on the web site.
  19.  
  20. is this a good idea.
  21.  
  22. if it is a good idea.. would serving images from an IP address directly be even faster ?
  23.  
  24. most people will say the savings here are too minimal..
  25.  
  26. but yet we find ourselves in a world where even google will combine css with html then remove all the new lines from html to serve google.com
  27.  
  28. it is obvious what programers say vs what big companies are doing differ.
  29.  
  30.  
  31. ----------------------------------------------------
  32.  
  33.  
  34. 2 upvote
  35. flag
  36.  
  37. What on earth are you talking about? The name of the website has nothing to do with loading speed. The website name is resolved to an IP address by a DNS anyway, so the website name is irrelevant. – Cyber Jun 5 at 11:42
  38.  
  39.  
  40.  
  41. @Cyber, the whole "resolving" thing involves transactions that are done trough database queries. – SÜMER KOLÇAK Jun 5 at 11:44
  42. 3
  43. up voted
  44.  
  45.  
  46. This question appears to be about web content hosting, a topic perhaps better suited to Pro Webmasters Stack Exchange. It is not a programming issue, and is off-topic here. – Martijn Pieters Jun 5 at 11:44
  47.  
  48.  
  49.  
  50. @Steve Jessop, when you go to a domain name.. the domain calls its owner. i dont know who owns dot com but .com will call its owner and its owner will have to query into a database to see if domain name is valid. then it is permitted to ask other questions such as what is the name servers and so on.. all these things pass through database queries. letters vs digits. you decide – SÜMER KOLÇAK Jun 5 at 11:46
  51.  
  52.  
  53.  
  54. @Martijn Pieters, the question is about speed and pretty much about programming. we are talking about how fast domains load.. the unspoken data about transactions.. and their effect on the content serving. – SÜMER KOLÇAK Jun 5 at 11:47
  55. 2
  56.  
  57.  
  58. @user3678635: exactly, and that is not a programming problem. You cannot alter your Python code to make the network go faster here. – Martijn Pieters Jun 5 at 11:48
  59.  
  60.  
  61.  
  62. @Martijn Pieters, if i try to discuss how fast domains resolve with webmasters that are discussing hosting and content.. etc.. they will have no clue.. only programmers might be able to think about this category and have some understanding because we are talking about things that are forbidden to be talked about .. ICANN and etc would hate this type of a discussion because there would be competition for speed. – SÜMER KOLÇAK Jun 5 at 11:50
  63.  
  64.  
  65.  
  66. Haha, this is the single most funny thing I've read all week. Kudos for effort mate, really! But a domain-name of a.com would translate into 00000000|00000000|00000000|00000000|00000000 roughly speaking obviously (there's more to it, but for making a point, lets say this is what a.com would resolve to in computer language). a domainname of 000111011102.com would translate into 00000000|00000000|00000000|00000000|00000000|00000000|00000000|00000000|0000000??0|00000000|00000000|00000000|00000000|00000000|00000000|00000000 because any character in your browser, is translate into a octet... – Torxed Jun 5 at 11:53
  67.  
  68.  
  69.  
  70. @user3678635: That still doesn't make this question a programming problem. – Martijn Pieters Jun 5 at 11:54
  71.  
  72.  
  73.  
  74. So just because you see 00000000.com on your monitor doesn't automaticly make it partially binary, because what you see is a representation of multiple computer languages no matter what. :) – Torxed Jun 5 at 11:54
  75.  
  76.  
  77.  
  78. @Torxed, it may not be binary, but it gets closer and closer.. – SÜMER KOLÇAK Jun 5 at 11:56
  79.  
  80.  
  81.  
  82. @Torxed, when you type .com.. .com goes to the owner of .com and asks it to find records of the domain. in other words there is a query being done to a database somewhere out there. last i checked there is like 85 or 95 million .coms out there. in other words there is a database out there with that many entries.. from MYSQL i know mysql can find numbers faster than letters. numbers looking for numbers in mysql is much faster than numbers or letters looking for numbers or letters. – SÜMER KOLÇAK Jun 5 at 12:00
  83.  
  84.  
  85.  
  86. @Steve Jessop, this question connects a domain tld and asks about how it works and speed implications. the tld passes through a database. how can it be a question other than a programming question ? – SÜMER KOLÇAK Jun 5 at 12:01
  87.  
  88.  
  89.  
  90. @Torxed, that is a good tool actually.. i am trying to get a fast .com domain name :) – SÜMER KOLÇAK Jun 5 at 12:02
  91.  
  92.  
  93.  
  94. @Torxed, the tool is fine but doest a .com query have to pass through a database that is huge ? .com has to find out if it is registered and active. to do that it has to query into a database made up of how many registered .coms are out there. – SÜMER KOLÇAK Jun 5 at 12:04
  95.  
  96.  
  97.  
  98. @user3678635 No not really :S Check this out: roubaixinteractive.com/PlayGround/Binary_Conversion/… Here's the chain of how a web-request looks like: User inputs 0.com -> Structure a binary DNS package containing a binary representation of '0.com' == '0011000000101110011000110110111101101101' -> Send binary DNS request to server -> Get DNS response -> connect to IP recieved from DNS server. – Torxed Jun 5 at 12:06
  99.  
  100.  
  101.  
  102. The speed of looking up 0.com and a.com is the same. Google: hashmap and other optemized datastructures, then you check out this picture that accurately describes the hierarchy of DNS servers. – Torxed Jun 5 at 12:08
  103.  
  104.  
  105.  
  106. @Torxed, well you are saying things turn into binary and then a query is made to the .com database.. but in mysql .. based on private tests conducted.. why do numbers find numbers much faster other types of queries.. is MYSQL designed wrong ? – SÜMER KOLÇAK Jun 5 at 12:08
  107.  
  108.  
  109.  
  110. A comparison of Integers==Integers is faster than String==String yes, but you're mistaking numbers from numbers when using applications. 11111.com in a browser is still a string, even tho you PHYSICALLY see numbers, they're still a string. – Torxed Jun 5 at 12:09
  111.  
  112.  
  113.  
  114. @Torxed, what if the speed is simply not measurable between 0.com and a.com due to the tool being allowed on the internet by the controllers of the .com because it does not try to create speed competition ? .. we need tests for something like.. 0000000000.com and aaaaaaaaaa.com or like equal amounts of 0s and a's but perhaps 20 or more characters to detect the speed. – SÜMER KOLÇAK Jun 5 at 12:10
  115.  
  116.  
  117.  
  118. @Torxed, the way signals travel from europe to america for example is.. its beep vs beep beep. that is how 0 and 1 is defined. in other words we have 0 and 1 that seems to be king somewhere out there deep inside wires and electricity. if they saw 0101010101.com perhaps they would say "hey its our sister" and things would load much more faster ? – SÜMER KOLÇAK Jun 5 at 12:12
  119.  
  120.  
  121.  
  122. Still the same, you're comparing STRINGS, nothing else. So the only thing that would cause different lookup-speeds, is the length of the domainname. That's one of the reasons for goo.gl and other short domainnames. You think that just because you send 0000000.com it will be interprated as Integers, but it ain't. It's still just a huge string. – Torxed Jun 5 at 12:12
  123.  
  124.  
  125.  
  126. @Torxed, i once had the domain name: 02.is but i knew it was not gonna be faster than a domain name like 0939201.com because .com gets more attention and thus higher quality hardware is used for .com also the biased decisions on the internet. – SÜMER KOLÇAK Jun 5 at 12:14
  127. 1
  128.  
  129.  
  130. @user3678635: I'm still not sure whether you're trolling or whether you lack a lot of knowledge about computers, programming and networks. – Matthias Jun 5 at 12:15
  131.  
  132.  
  133.  
  134. @Torxed, based on what you are saying.. you are saying searching a mysql database for "abc" and "000" would be exactly the same speed. but yet based on the tests i ran in the past with mysql. this is not true. "000" is much faster than "abc" type queries. you can call it string or text.. ultimately mysql likes numbers better than letters. and perhaps all databases do . including the governing database of .com – SÜMER KOLÇAK Jun 5 at 12:16
  135.  
  136.  
  137.  
  138. @user3678635 Lol no, .com is not bias. And definitely not better hardware. Here's a few things that makes lookups fast: Buy a local domain register, mine is iss.se for a .se domain, because everyone in Sweden will lookup .se domains a lot quicker than .com, secondly, the server responding to your domain-name should be localized in the country of your userpool. Thirdly optemize your DNS server to handle the packagelength of DNS package better for faster responsetimes. – Torxed Jun 5 at 12:17
  139.  
  140.  
  141.  
  142. @Matthias, it looks like the question is on hold and going to be deleted. even if i am trolling.. let it be .. does this comment get posted elsewhere other than underneath this to be deleted question.. how does it effect you ? – SÜMER KOLÇAK Jun 5 at 12:17
  143.  
  144.  
  145.  
  146. @Torxed, .se is under management of HUMAN BEINGS that may not have as much experience as the HUMAN BEINGS that are in charge of .com. if there is one false move with .com domains.. it makes big companies mad .. and people end up getting fired. but with other tlds.. they can delete domains.. change ID numbers for domains so your domain is at the bottom of the database.. if the database runs queries based on id for example.. your domain being listed at the bottom of the list makes it load a tiny bit slower perhaps. – SÜMER KOLÇAK Jun 5 at 12:20
  147.  
  148.  
  149.  
  150. @ user3678635: If you're trolling - and I think you are because noone can be so clueless - I just wanted to congratulate you on the subject you selected for that. – Matthias Jun 5 at 12:20
  151.  
  152.  
  153.  
  154. @user3678635 depending on your database-engine, a search for SELECT * FROM table WHERE col='000'; will be just as fast as SELECT * FROM table WHERE col='aaa';, but depending on your database engine it might do clever optimizations such as value-type conversion from string to integer and also it might be a fluke based on the value you put in. Check this picture out describing how a C++ implementation of a hashmap with weight is implemented. – Torxed Jun 5 at 12:21
  155.  
  156.  
  157.  
  158. @Torxed, we are talking about transactions that steal tiny bit of time. that are very difficult to measure. almost to be called nano seconds if you will. when you add these tiny nano seconds together.. for example lets say your web site has 100 images and they receive 1 billion hits in few months or 1 year.. they add up to real money and real theft. do they not. – SÜMER KOLÇAK Jun 5 at 12:21
  159.  
  160.  
  161.  
  162. @Matthias, call it trolling call it whatever. the question is on hold and gonna be closed.. and here you are all spending your time in the comments section asking someone to not post any more comments as if it even matters. – SÜMER KOLÇAK Jun 5 at 12:22
  163.  
  164.  
  165.  
  166. Theft? o0 I think you really need to ask your teacher how datastructures work, and more importantly where to put your optimizations because a DNS lookup takes a few miliseconds at the most while performance regarding images can be easily averted by cache and different transport methods (gzip being one) – Torxed Jun 5 at 12:23
  167.  
  168.  
  169.  
  170. @Torxed, it's not like databases work based on how the spherical stars in the cosmos work. the spherical star's core heats up. it goes both directions at the same time.. transmission that is. but on earth we have a problem.. everything starts with 0 1 2 3 and keeps on going in a straight line. there are no spheres in databases here on earth on the internet. 1 is considered the top number. in the cosmos in the core of a star.. 1 has a reflection that is -1.. in other words -1 should come right after 1 .. but that is not how stuff works here in this planet does it.. example: 1 -1 2 -2 3 -3 – SÜMER KOLÇAK Jun 5 at 12:28
  171.  
  172.  
  173.  
  174. @Torxed, we have a real big problem on planet earth bro. numbers are moving in a straight line.. and yet when we move away from earth we discover stars in the cosmos do not follow such logic. – SÜMER KOLÇAK Jun 5 at 12:30
  175.  
  176.  
  177.  
  178. You're tripping... ejects – Torxed Jun 5 at 12:32
  179.  
  180.  
  181.  
  182. @Torxed, if you say so. perhaps your mind can not grasp the issue here. i am back at apod.nasa.gov – SÜMER KOLÇAK Jun 5 at 12:34
  183.  
  184.  
  185.  
  186. @user3678635 Doesn't say much considering the conversation, no offence, but astrophysics and electrical engineering are two completely different things. Even so, the logic between the 7 layers of computing are something you really should read up on. Further more, throwing around with titles is something anyone could do, even me altho many of my projects are of nature "national security" and can not be thrown around with I can understand the appeal of doing so but for future references, you look no smarter throwing around with an umbrella you live under unless you can win the discussion... – Torxed Jun 5 at 13:00
  187.  
  188.  
  189.  
  190. @Torxed, there can not be 2 completely different things in the cosmos because for the imagination to imagine void and disappear.. everything has to make sense. the concept of " two very completely different things " will result in things vanishing to void in a manner that it can be considered suicide. which can result in a black hole in the cosmos. all stars get sucked in and the existence expands in the cosmos and void. obviously the concept of "two very different things" simply does not work in the cosmos – SÜMER KOLÇAK Jun 5 at 13:05
  191.  
  192.  
  193.  
  194. @user3678635 gist.github.com/Torxed/d947bb4cc67e0e2ca1e2 Note how cobra.com took longer than amazon.com even tho amazon is one letter longer. And more importantly, sockervadd.se was even quicker than amazon (which is a HUGE company with billion of dollars in IT costs compared to sockervadd which is really just a home-server with absoluteness nothing in revenue to talk about..), why is that do you think? is it because the length or the domain-name has little to nothing to do with speed? even tho it affects the speed if you use extended lengths of DNS records? Cosmos and all that. – Torxed Jun 5 at 13:50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement