Opened 17 years ago
Closed 16 years ago
#148 closed enhancement (fixed)
use pointer dynamic_cast when failure is ecpected
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | critical | Milestone: | yat 0.4 |
Component: | classifier | Version: | trunk |
Keywords: | Cc: |
Description
We are using dynamic_cast in quite a few places in classifier::. After our discussion earlier today, I suppose the conclusion is that we should use dynamic_cast<Class*> rather than dynamic_cast<Class&> because throwing the exception takes too much CPU.
This applies to the following classes: NCC, SVM, EnsembleBuilder?, and SubsetGenerator?.
Change History (3)
comment:1 Changed 16 years ago by
Milestone: | later → 0.4 |
---|---|
Priority: | major → critical |
comment:2 Changed 16 years ago by
Owner: | changed from Markus Ringnér to Peter |
---|---|
Status: | new → assigned |
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
fixed in [857] and [858]