Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > pl.comp.programming > #30386

Re: Automatic Reference Counting

From Tomasz Kaczanowski <kaczus@poczta.onet.pl>
Newsgroups pl.comp.programming
Subject Re: Automatic Reference Counting
Date 2017-08-21 07:49 +0200
Organization ATMAN - ATM S.A.
Message-ID <ondsb7$ot5$1@node1.news.atman.pl> (permalink)
References (9 earlier) <on6ch1$dr2$1@node1.news.atman.pl> <be82f854-a56e-4ec8-a340-e08739fc923f@googlegroups.com> <ona4uo$6tl$1@node2.news.atman.pl> <5e947dc3-5501-4886-8332-4b9621154643@googlegroups.com> <06c0b79e-185a-4537-bf57-75a673e6c7ab@googlegroups.com>

Show all headers | View raw


W dniu 2017-08-19 o 23:17, fir pisze:
> W dniu sobota, 19 sierpnia 2017 23:02:17 UTC+2 użytkownik M.M. napisał:
>> On Saturday, August 19, 2017 at 9:52:57 PM UTC+2, AK wrote:
>>> Użytkownik "bartekltg" <bartekltg@gmail.com> napisał:
>>>
>>>> Jeśli to jest drzewo, to w dół idzie unique_ptr, a w górę choćby goły
>>>> wskaźnik. Ten goły zawsze jest ważny, bo obiekt w którym jest istnieje
>>>> tylko, jesli obiekt nadrzędny istnieje.
>>>
>>> Nie goly wskaznik, tylko normalniej: weak_pointer
>>>
>>> PS: Najlepiej zapomniec o "zwyklych"/"golych"wskaznikach.
>>>      Doposzczalne winny byc jedynie w narzedziowce i to "on demand; (tak jak to zrobiono w C#)
>>>
>>> AK
>>
>> Gdy wydajność nie jest istotna, to trzeba korzystać z wszelkich
>> tego typu udogodnień.
>> Pozdrawiam
> 
> gdy wydajnosc jest istotna to nawet zwykle wskazniki nie sa wskazane imo
> 
> (kiedys mierzylem ile wolniejszy jest kod gdy dzialasz na tablicy bedacej wynikiem malloka w stosunku do w pewlni statycznej - i na malloku bylo auwazalnie 10-20% wolniej
> 
> no ale niewazne moze to byla specyficzne sytuacje, podaje jako anegdote, ostatnio az tak bardzo nie przejmuje sie wydajnoscią - nawet moge
> powiedziec, kiedys stawialem chyba gdzies tu pytanie jak ktos zrobilby trzymanie zawartosci edytora tekstowego w programie w c i kombinowalem wtedy cos w kierunku trzymania listy litych kawalkow ramu po powiedzmy okolo 500 kb kazdy - dzis
> raczej chyba zrobilbym przynajmniej na poczatek do testu tak ze kazda linijka w edytrze po prostu bylaby na odzielnym malloku (realokowany w miare
> edycji itd)
> 

Gdybyś się przyłożył bardziej do testów, zauważyłbyś, że jest to zależne 
od tego w jakim celu, jak dużą tablicę potrzebujesz. To jest narzędzie, 
tak samo jak młotek, czy wkrętak, jak będziesz młotkiem próbował wkręcać 
śrubki, a wkrętakiem wbijał gwoździe, to tez będzie raczej nieoptymalne...


-- 
http://kaczus.ppa.pl

Back to pl.comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-14 01:17 +0200
  Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-13 16:35 -0700
    Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-14 02:40 +0200
      Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-14 01:03 -0700
        Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-14 10:14 +0200
          Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-14 01:31 -0700
            Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-14 15:10 +0200
              Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-14 15:17 +0200
              Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-14 15:26 +0200
              Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-14 06:36 -0700
          Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-16 22:17 +0200
            Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-16 14:31 -0700
              Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-17 09:01 -0700
                Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-18 08:01 +0200
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-18 00:20 -0700
              Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-18 07:50 +0200
                Re: Automatic Reference Counting bartekltg <bartekltg@gmail.com> - 2017-08-18 01:42 -0700
                Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-18 01:53 -0700
                Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-18 11:37 +0200
                Re: Automatic Reference Counting bartekltg <bartekltg@gmail.com> - 2017-08-18 03:07 -0700
                Re: Automatic Reference Counting bartekltg <bartekltg@gmail.com> - 2017-08-18 03:10 -0700
                Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-18 12:38 +0200
                Re: Automatic Reference Counting bartekltg <bartekltg@gmail.com> - 2017-08-18 06:02 -0700
                Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-19 21:51 +0200
                Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-19 14:02 -0700
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-19 14:17 -0700
                Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-19 17:46 -0700
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-20 00:46 -0700
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-20 01:14 -0700
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-20 01:26 -0700
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-20 01:42 -0700
                Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-20 03:30 -0700
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-20 04:01 -0700
                Re: Automatic Reference Counting fir <profesor.fir@gmail.com> - 2017-08-20 04:16 -0700
                Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-20 04:51 -0700
                Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-20 10:41 +0200
                Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-20 10:35 +0200
                Re: Automatic Reference Counting Tomasz Kaczanowski <kaczus@poczta.onet.pl> - 2017-08-21 07:49 +0200
                Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-21 03:23 -0700
                Re: Automatic Reference Counting bartekltg <bartekltg@gmail.com> - 2017-08-20 04:55 -0700
                Re: Automatic Reference Counting "M.M." <mmarszik@gmail.com> - 2017-08-18 03:40 -0700
            Re: Automatic Reference Counting Wojciech Muła <wojtek.mula@gmail.com> - 2017-08-17 14:56 -0700
              Re: Automatic Reference Counting Borneq <borneq@antyspam.hidden.pl> - 2017-08-18 07:09 +0200
                Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-18 07:58 +0200
                Re: Automatic Reference Counting bartekltg <bartekltg@gmail.com> - 2017-08-18 01:50 -0700
              Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-18 07:54 +0200
        Re: Automatic Reference Counting "AK" <nobody@nowhere.net> - 2017-08-16 22:16 +0200

csiph-web