#7091: Bluetooth UI layer refactoring and improvement -------------------------------------------+------------------------------ Reporter: hamish | Owner: yourpalal Type: enhancement | Status: assigned Priority: normal | Milestone: R1 Component: Network & Internet/Bluetooth | Version: R1/Development Resolution: | Keywords: Blocked By: | Has a Patch: 1 Platform: All | Blocking: -------------------------------------------+------------------------------ Comment (by yourpalal): Replying to [comment:12 oruizdorantes]: > > Another option is to pass the view name in place of the index, which combines the best of both worlds (fixed "handles" + no extra BList). This also makes it simple to find the view in question using BView::FindView(). All that would be needed on the server side would be to make sure the string literals are assigned to a const char* somewhere. How does that sound to you? > > I like the idea, but I guess we would have an overhead each time we post debug information for looking for the view, comparing strings :-/ Yes, but the overhead will still be small, considering the small number of strings to compare, and the likelihood of 'short-circuiting' most comparisons (e.g. they fail on the first or second character). It will of course be slower than a constant time operation (as we have now). -- Ticket URL: <http://dev.haiku-os.org/ticket/7091#comment:13> Haiku <http://dev.haiku-os.org> Haiku - the operating system.