Gamemode SDK for C/C++ (GDK)
#65

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Okey, and it won't be slow if I use ~1500cmd with this method?
if a normal programwhich has thousands of function isn't slow, why should this be?
But ye, about the map: the more you store the slower the lookup.

The lookup time is O(Log(n)) with n the amount of items in the container.

To make it easier, let's say we have 100 commands in the list, this is our base for now. The lookup time will be 2.
if we have 10000 commands in the list, the lookup time will be 4. which is just 2 times slower than when we have 100 commands in the map.

Here would be a theoretical graph of access times(y) according to the amount of commands(x):

[Image: uc?id=0BzUKBMbvP0EFdm9UWTc1UUZBQnc&export=view]

for an unordered map, if you hashing function is good, the access time will be O(1) [so always be the same], however - worst case O(n) [proportional to the amount of items in the container]. In an unordered map you trade size for speed so beware of the memory hit.
Reply


Messages In This Thread
Gamemode SDK for C/C++ (GDK) - by xeeZ - 08.03.2013, 07:08
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 08.03.2013, 07:20
Re: Gamemode SDK for C/C++ (GDK) - by RajatPawar - 08.03.2013, 07:22
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 08.03.2013, 07:31
Re: Gamemode SDK for C/C++ (GDK) - by RajatPawar - 08.03.2013, 07:34
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 08.03.2013, 08:23
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 08.03.2013, 08:49
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 08.03.2013, 08:59
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 08.03.2013, 09:10
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 08.03.2013, 09:33
AW: Gamemode SDK for C/C++ (GDK) - by Mellnik - 08.03.2013, 09:46
Re: Gamemode SDK for C/C++ (GDK) - by steki. - 08.03.2013, 09:48
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 08.03.2013, 09:57
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 08.03.2013, 10:18
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 08.03.2013, 10:23
Re: Gamemode SDK for C/C++ (GDK) - by steki. - 08.03.2013, 11:07
Re: Gamemode SDK for C/C++ (GDK) - by RajatPawar - 08.03.2013, 12:11
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 08.03.2013, 12:21
Re: Gamemode SDK for C/C++ (GDK) - by nGen.SoNNy - 08.03.2013, 22:32
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 08.03.2013, 23:13
Re: Gamemode SDK for C/C++ (GDK) - by CoaPsyFactor - 10.03.2013, 04:53
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 10.03.2013, 08:20
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 11.03.2013, 14:12
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 11.03.2013, 16:04
Re: Gamemode SDK for C/C++ (GDK) - by Hoda - 13.03.2013, 09:27
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 13.03.2013, 11:03
Re: Gamemode SDK for C/C++ (GDK) - by Shadmehr - 18.03.2013, 16:05
Re: Gamemode SDK for C/C++ (GDK) - by Dan.. - 18.03.2013, 19:57
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 19.03.2013, 16:04
Re: Gamemode SDK for C/C++ (GDK) - by AndreT - 20.03.2013, 15:37
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 20.03.2013, 17:12
Re: Gamemode SDK for C/C++ (GDK) - by AndreT - 20.03.2013, 19:08
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 21.03.2013, 23:06
Re: Gamemode SDK for C/C++ (GDK) - by Kar - 22.03.2013, 00:52
Re: Gamemode SDK for C/C++ (GDK) - by Jamixd1 - 22.03.2013, 01:21
AW: Gamemode SDK for C/C++ (GDK) - by BigETI - 23.03.2013, 07:14
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 23.03.2013, 07:50
AW: Gamemode SDK for C/C++ (GDK) - by BigETI - 23.03.2013, 07:53
Re: Gamemode SDK for C/C++ (GDK) - by PawnFox - 23.03.2013, 19:49
Re: Gamemode SDK for C/C++ (GDK) - by Huskar - 25.03.2013, 04:50
Re: Gamemode SDK for C/C++ (GDK) - by steki. - 25.03.2013, 17:28
Re: Gamemode SDK for C/C++ (GDK) - by fml - 25.03.2013, 18:00
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 25.03.2013, 19:06
Re: Gamemode SDK for C/C++ (GDK) - by steki. - 25.03.2013, 19:09
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 27.03.2013, 20:05
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 28.03.2013, 06:04
Re: Gamemode SDK for C/C++ (GDK) - by fml - 29.03.2013, 15:08
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 29.03.2013, 15:17
Re: Gamemode SDK for C/C++ (GDK) - by Dystans - 08.04.2013, 13:08
Re: Gamemode SDK for C/C++ (GDK) - by Yiin - 08.04.2013, 13:56
Re: Gamemode SDK for C/C++ (GDK) - by Dystans - 10.04.2013, 09:00
Re: Gamemode SDK for C/C++ (GDK) - by iggy1 - 10.04.2013, 09:19
Re: Gamemode SDK for C/C++ (GDK) - by Gamer_Z - 10.04.2013, 09:52
Re: Gamemode SDK for C/C++ (GDK) - by Dystans - 10.04.2013, 10:17
Re: Gamemode SDK for C/C++ (GDK) - by iggy1 - 10.04.2013, 11:22
Re: Gamemode SDK for C/C++ (GDK) - by Dystans - 10.04.2013, 13:28
Re: Gamemode SDK for C/C++ (GDK) - by Slava[LSW] - 21.04.2013, 00:45
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 08.05.2013, 13:45
Re: Gamemode SDK for C/C++ (GDK) - by AndreT - 08.05.2013, 14:08
Re: Gamemode SDK for C/C++ (GDK) - by kurta999 - 09.05.2013, 17:55
Re: Gamemode SDK for C/C++ (GDK) - by Gamer_Z - 09.05.2013, 18:20
Re: Gamemode SDK for C/C++ (GDK) - by kurta999 - 10.05.2013, 04:36
Re: Gamemode SDK for C/C++ (GDK) - by Gamer_Z - 10.05.2013, 11:48
Re: Gamemode SDK for C/C++ (GDK) - by kurta999 - 10.05.2013, 13:52
Re: Gamemode SDK for C/C++ (GDK) - by Gamer_Z - 10.05.2013, 14:18
Re: Gamemode SDK for C/C++ (GDK) - by kurta999 - 10.05.2013, 14:22
Re: Gamemode SDK for C/C++ (GDK) - by AndreT - 10.05.2013, 19:46
Re: Gamemode SDK for C/C++ (GDK) - by Gamer_Z - 10.05.2013, 19:57
Re: Gamemode SDK for C/C++ (GDK) - by LeaveMe - 04.10.2013, 14:15
AW: Re: Gamemode SDK for C/C++ (GDK) - by BigETI - 04.10.2013, 17:30
Re: Gamemode SDK for C/C++ (GDK) - by AndreT - 06.10.2013, 08:00
Re: Gamemode SDK for C/C++ (GDK) - by LeaveMe - 06.10.2013, 08:49
Re: Gamemode SDK for C/C++ (GDK) - by AndreT - 06.10.2013, 18:15
Re: Gamemode SDK for C/C++ (GDK) - by LeaveMe - 07.10.2013, 08:53
AW: Gamemode SDK for C/C++ (GDK) - by Blowfish - 11.10.2013, 14:35
Re: Gamemode SDK for C/C++ (GDK) - by Jankingston - 11.10.2013, 14:51
Re: AW: Gamemode SDK for C/C++ (GDK) - by maddinat0r - 11.10.2013, 14:54
AW: Gamemode SDK for C/C++ (GDK) - by Blowfish - 11.10.2013, 15:04
AW: Gamemode SDK for C/C++ (GDK) - by Mellnik - 24.10.2013, 19:10
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 24.10.2013, 20:25
AW: Re: Gamemode SDK for C/C++ (GDK) - by Mellnik - 24.10.2013, 21:06
AW: Re: AW: Re: Gamemode SDK for C/C++ (GDK) - by Mellnik - 25.10.2013, 10:50
AW: Re: AW: Re: AW: Re: Gamemode SDK for C/C++ (GDK) - by Mellnik - 25.10.2013, 12:19
Re: AW: Re: AW: Re: AW: Re: Gamemode SDK for C/C++ (GDK) - by maddinat0r - 25.10.2013, 12:49
Re: Gamemode SDK for C/C++ (GDK) - by Isolated - 27.10.2013, 16:01
Re: Gamemode SDK for C/C++ (GDK) - by Jardell - 28.10.2013, 03:44
Re: Gamemode SDK for C/C++ (GDK) - by thefatshizms - 07.11.2013, 19:27
Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 09.11.2013, 19:18
Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by xeeZ - 09.11.2013, 20:45
AW: Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by Mellnik - 09.11.2013, 20:50
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 09.11.2013, 21:18
Respuesta: Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 09.11.2013, 23:50
Respuesta: Gamemode SDK for C/C++ (GDK) - by oOFotherOo - 09.12.2013, 23:04
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 19.12.2013, 10:56
Re: Gamemode SDK for C/C++ (GDK) - by CyNiC - 19.12.2013, 13:30
Re: Gamemode SDK for C/C++ (GDK) - by PT - 19.12.2013, 14:23
Re: Gamemode SDK for C/C++ (GDK) - by Pupak - 21.12.2013, 23:17
Re: Gamemode SDK for C/C++ (GDK) - by Pupak - 30.12.2013, 17:11
Re: Gamemode SDK for C/C++ (GDK) - by LeaveMe - 30.12.2013, 17:26
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 30.12.2013, 18:00
Re: Gamemode SDK for C/C++ (GDK) - by leonardo1434 - 06.02.2014, 03:09
Re: Gamemode SDK for C/C++ (GDK) - by LeaveMe - 06.02.2014, 05:48
Re: Gamemode SDK for C/C++ (GDK) - by leonardo1434 - 06.02.2014, 08:02
Re: Gamemode SDK for C/C++ (GDK) - by LeaveMe - 12.02.2014, 10:08
Re: Gamemode SDK for C/C++ (GDK) - by d711728 - 14.02.2014, 10:15
Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 15.02.2014, 07:44
Re: Gamemode SDK for C/C++ (GDK) - by d711728 - 15.02.2014, 14:12
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 15.02.2014, 14:43
Re: Gamemode SDK for C/C++ (GDK) - by d711728 - 15.02.2014, 14:49
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 15.02.2014, 14:53
Re: Gamemode SDK for C/C++ (GDK) - by d711728 - 15.02.2014, 16:03
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 15.02.2014, 17:27
Re: Gamemode SDK for C/C++ (GDK) - by d711728 - 18.02.2014, 19:02
Re: Gamemode SDK for C/C++ (GDK) - by Pupak - 23.02.2014, 14:15
Re: Gamemode SDK for C/C++ (GDK) - by d711728 - 23.02.2014, 17:29
Respuesta: Gamemode SDK for C/C++ (GDK) - by oOFotherOo - 26.02.2014, 21:05
Re: Gamemode SDK for C/C++ (GDK) - by [ESC]Walter_Wolf - 02.03.2014, 15:47
Re: Gamemode SDK for C/C++ (GDK) - by d711728 - 02.03.2014, 17:54
Re: Gamemode SDK for C/C++ (GDK) - by [ESC]Walter_Wolf - 03.03.2014, 06:53
Re: Gamemode SDK for C/C++ (GDK) - by [ESC]Walter_Wolf - 04.03.2014, 17:28
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 03.05.2014, 16:45
Re: Gamemode SDK for C/C++ (GDK) - by SkittlesAreFalling - 04.05.2014, 08:23
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 17.05.2014, 09:20
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 22.05.2014, 13:54
Re: Gamemode SDK for C/C++ (GDK) - by Deji - 22.05.2014, 21:09
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 22.05.2014, 23:19
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 23.05.2014, 10:34
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 23.05.2014, 10:57
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 23.05.2014, 12:14
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 23.05.2014, 12:20
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 23.05.2014, 13:12
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 23.05.2014, 14:03
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 23.05.2014, 14:25
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 23.05.2014, 14:40
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 23.05.2014, 14:58
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 23.05.2014, 15:18
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 23.05.2014, 18:07
Re: Gamemode SDK for C/C++ (GDK) - by Dumbes - 23.05.2014, 19:12
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 23.05.2014, 19:31
Respuesta: Gamemode SDK for C/C++ (GDK) - by Malganys - 01.06.2014, 23:42
Re : Gamemode SDK for C/C++ (GDK) - by TheDzGhost - 02.06.2014, 01:14
Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by Gamer_Z - 02.06.2014, 06:01
Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 08.06.2014, 04:46
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 08.06.2014, 06:22
Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 08.06.2014, 17:33
Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 25.07.2014, 00:17
Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by stokdam - 25.07.2014, 08:16
Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 25.07.2014, 18:57
Re: Gamemode SDK for C/C++ (GDK) - by maddinat0r - 25.07.2014, 19:45
Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by samiras - 25.07.2014, 20:25
Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 25.07.2014, 20:35
Re : Gamemode SDK for C/C++ (GDK) - by S4t3K - 25.07.2014, 20:40
Respuesta: Re : Gamemode SDK for C/C++ (GDK) - by JustBored - 25.07.2014, 20:51
Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by samiras - 26.07.2014, 03:11
Respuesta: Re: Respuesta: Gamemode SDK for C/C++ (GDK) - by JustBored - 26.07.2014, 04:22
Re: Gamemode SDK for C/C++ (GDK) - by MD5 - 28.11.2014, 05:27
Re: Gamemode SDK for C/C++ (GDK) - by diclofoss - 01.12.2014, 02:07
Re: Gamemode SDK for C/C++ (GDK) - by diclofoss - 01.12.2014, 05:08
Re: Gamemode SDK for C/C++ (GDK) - by iggy1 - 01.12.2014, 09:40
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 01.12.2014, 13:07
Re: Gamemode SDK for C/C++ (GDK) - by iggy1 - 01.12.2014, 13:42
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 01.12.2014, 13:56
Re: Gamemode SDK for C/C++ (GDK) - by iggy1 - 01.12.2014, 14:47
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 01.12.2014, 17:17
Re: Gamemode SDK for C/C++ (GDK) - by iggy1 - 01.12.2014, 19:08
Re: Gamemode SDK for C/C++ (GDK) - by Baltazar - 24.12.2014, 12:44
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 24.12.2014, 13:11
Re: Gamemode SDK for C/C++ (GDK) - by Baltazar - 24.12.2014, 14:02
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 24.12.2014, 15:46
Re: Gamemode SDK for C/C++ (GDK) - by Baltazar - 24.12.2014, 17:04
Re: Gamemode SDK for C/C++ (GDK) - by GWMPT - 24.12.2014, 17:22
Re: Gamemode SDK for C/C++ (GDK) - by Baltazar - 24.12.2014, 17:32
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 25.12.2014, 01:30
Re: Gamemode SDK for C/C++ (GDK) - by Baltazar - 25.12.2014, 12:33
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 25.12.2014, 13:45
Re: Gamemode SDK for C/C++ (GDK) - by BoPoH - 09.05.2015, 00:13
Respuesta: Gamemode SDK for C/C++ (GDK) - by Axxe - 24.05.2015, 17:28
Re: Gamemode SDK for C/C++ (GDK) - by kurta999 - 24.05.2015, 17:30
Re: Gamemode SDK for C/C++ (GDK) - by SoNikMells - 24.05.2015, 19:08
Re: Gamemode SDK for C/C++ (GDK) - by ReDKiiL - 27.05.2015, 19:59
Re: Gamemode SDK for C/C++ (GDK) - by Falet - 30.06.2015, 20:30
Re: Gamemode SDK for C/C++ (GDK) - by Drake1994 - 02.07.2015, 20:36
Re: Gamemode SDK for C/C++ (GDK) - by kaZax - 04.07.2015, 07:57
Re: Gamemode SDK for C/C++ (GDK) - by Yashas - 04.07.2015, 08:58
Re: Gamemode SDK for C/C++ (GDK) - by theYiin - 04.07.2015, 10:42
Re: Gamemode SDK for C/C++ (GDK) - by kurta999 - 13.07.2015, 19:05
Re: Gamemode SDK for C/C++ (GDK) - by kaZax - 15.07.2015, 17:25
Re: Gamemode SDK for C/C++ (GDK) - by RaeF - 22.07.2015, 08:38
Re: Gamemode SDK for C/C++ (GDK) - by xhunterx - 14.08.2015, 23:04
Re: Gamemode SDK for C/C++ (GDK) - by kaZax - 17.08.2015, 09:31
Re: Gamemode SDK for C/C++ (GDK) - by kaZax - 23.09.2015, 16:25
Re: Gamemode SDK for C/C++ (GDK) - by xeeZ - 25.09.2015, 23:43
Re: Gamemode SDK for C/C++ (GDK) - by kaZax - 28.09.2015, 18:07
Re: Gamemode SDK for C/C++ (GDK) - by PaSaSaP - 21.11.2015, 23:42
Re: Gamemode SDK for C/C++ (GDK) - by WopsS - 25.11.2015, 17:57
Re: Gamemode SDK for C/C++ (GDK) - by mirou123 - 24.03.2016, 17:31
Re: Gamemode SDK for C/C++ (GDK) - by Revolutionize - 09.04.2016, 08:49
Re: Gamemode SDK for C/C++ (GDK) - by Konstantinos - 21.06.2016, 22:30
Re: Gamemode SDK for C/C++ (GDK) - by RaeF - 21.06.2016, 23:57
Re: Gamemode SDK for C/C++ (GDK) - by Yashas - 22.06.2016, 07:14
Re: Gamemode SDK for C/C++ (GDK) - by Konstantinos - 22.06.2016, 10:12
Re: Gamemode SDK for C/C++ (GDK) - by doreto - 19.08.2016, 17:19
Re: Gamemode SDK for C/C++ (GDK) - by Spmn - 19.08.2016, 18:29
Re: Gamemode SDK for C/C++ (GDK) - by doreto - 23.08.2016, 13:54
Re: Gamemode SDK for C/C++ (GDK) - by Arturo226 - 13.12.2016, 22:06
Re: Gamemode SDK for C/C++ (GDK) - by cawfee - 14.01.2017, 12:43
Re: Gamemode SDK for C/C++ (GDK) - by ikkentim - 15.01.2017, 09:57
Re: Gamemode SDK for C/C++ (GDK) - by cawfee - 15.01.2017, 10:17
Re: Gamemode SDK for C/C++ (GDK) - by IstuntmanI - 25.03.2017, 18:13
Re: Gamemode SDK for C/C++ (GDK) - by WopsS - 25.03.2017, 18:36
Re: Gamemode SDK for C/C++ (GDK) - by IstuntmanI - 25.03.2017, 19:00
Re: Gamemode SDK for C/C++ (GDK) - by WopsS - 25.03.2017, 19:33
Re: Gamemode SDK for C/C++ (GDK) - by WopsS - 25.03.2017, 21:06
Re: Gamemode SDK for C/C++ (GDK) - by IstuntmanI - 04.04.2017, 22:04
Re: Gamemode SDK for C/C++ (GDK) - by WopsS - 05.04.2017, 00:21
Re: Gamemode SDK for C/C++ (GDK) - by maddinat0r - 05.04.2017, 17:35
Re: Gamemode SDK for C/C++ (GDK) - by TheRealSphinx - 09.05.2017, 01:45
Re: Gamemode SDK for C/C++ (GDK) - by ChronosX - 17.07.2018, 17:07
Re: Gamemode SDK for C/C++ (GDK) - by J0sh... - 17.07.2018, 17:42
Re: Gamemode SDK for C/C++ (GDK) - by BigETI - 17.07.2018, 18:40

Forum Jump:


Users browsing this thread: 25 Guest(s)