Type:
Task
Priority:
Major
Resolution:
Fixed
Under term of this tasks we'll remove switch(cmp_type()) in Item_func_hybrid_field_type::val_xxx() and Item_func_hybrid_field_type::get_date() and introduce instead new methods in Type_handler , e.g.:
class Type_handler
{
...
virtual
String *Item_func_hybrid_field_type_val_str(Item_func_hybrid_field_type *,
String *) const = 0;};
}
The methods Item_func_hybrid_field_type::val_xxx() and Item_func_hybrid_field_type::get_date() will call the corresponding new methods in Type_handler :
class Item_func_hybrid_field_type: public Item_hybrid_func
{
...
String *val_str(String*str)
{
return Item_func_hybrid_field_type::type_handler()->
Item_func_hybrid_field_type_val_str( this , str);
}
...
}
For performance purposes, the change should try not to introduce new virtual calls.
One virtual call in switch(cmp_type()) should be replaced to one virtual call in Type_handler .
Calls inside the new methods in Type_handler should be done statically.
blocks
MDEV-4912
Data type plugin API version 1
Closed
Alexander Barkov
made changes -
2016-11-22 08:04
Affects Version/s
10.3
[ 22126
]
Issue Type
Bug
[ 1
]
Task
[ 3
]
Alexander Barkov
made changes -
2016-11-22 08:05
Description
Under term of this tasks we'll remove switch(cmp_type()) in Item_func_hybrid_field_type::val_xxx() and Item_func_hybrid_field_type::get_date() and introduce instead new methods in Type_handler, e.g.:
{code:cpp}
class Type_handler
{
...
virtual
String *Item_func_hybrid_field_type_val_str(Item_func_hybrid_field_type *,
String *) const= 0;};
}
{code}
The methods Item_func_hybrid_field_type::val_xxx() and Item_func_hybrid_field_type::get_date() will call the corresponding new methods in Type_handler:
{code:cpp}
class Item_func_hybrid_field_type: public Item_hybrid_func
{
...
String *val_str(String*str)
{
return Item_func_hybrid_field_type::type_handler()->
Item_func_hybrid_field_type_val_str(this, str);
}
...
}
{code}
For performance purposes, the change should try not to introduce new virtual calls.
One virtual call in switch(cmp_type()) should be replaced to one virtual call in Type_handler.
Calls inside the new methods in Type_handler should be done statically.
Under term of this tasks we'll remove {{switch(cmp_type())}} in {{Item_func_hybrid_field_type::val_xxx()}} and {{Item_func_hybrid_field_type::get_date()}} and introduce instead new methods in {{Type_handler}}, e.g.:
{code:cpp}
class Type_handler
{
...
virtual
String *Item_func_hybrid_field_type_val_str(Item_func_hybrid_field_type *,
String *) const= 0;};
}
{code}
The methods {{Item_func_hybrid_field_type::val_xxx()}} and {{Item_func_hybrid_field_type::get_date()}} will call the corresponding new methods in {{Type_handler}}:
{code:cpp}
class Item_func_hybrid_field_type: public Item_hybrid_func
{
...
String *val_str(String*str)
{
return Item_func_hybrid_field_type::type_handler()->
Item_func_hybrid_field_type_val_str(this, str);
}
...
}
{code}
For performance purposes, the change should try not to introduce new virtual calls.
One virtual call in {{switch(cmp_type())}} should be replaced to one virtual call in {{Type_handler}}.
Calls inside the new methods in {{Type_handler}} should be done statically.
Alexander Barkov
made changes -
2016-11-22 13:59
Status
Open
[ 1
]
In Progress
[ 3
]
Alexander Barkov
made changes -
2016-11-22 13:59
Assignee
Alexander Barkov
[ bar
]
Vicentiu Ciorbaru
[ cvicentiu
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Vicențiu Ciorbaru
made changes -
2016-12-05 12:28
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Alexander Barkov
made changes -
2016-12-05 12:31
Assignee
Vicentiu Ciorbaru
[ cvicentiu
]
Alexander Barkov
[ bar
]
Alexander Barkov
made changes -
2016-12-05 12:31
Status
Stalled
[ 10000
]
In Progress
[ 3
]
Alexander Barkov
made changes -
2016-12-05 12:31
issue.field.resolutiondate
2016-12-05 12:31:49.0
2016-12-05 12:31:49.716
Alexander Barkov
made changes -
2016-12-05 12:31
Fix Version/s
10.3.0
[ 22127
]
Fix Version/s
10.3
[ 22126
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:23
Workflow
MariaDB v3
[ 78414
]
MariaDB v4
[ 133005
]
{"report":{"fcp":959.2999999523163,"ttfb":254.29999995231628,"pageVisibility":"visible","entityId":59014,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6d809fde-3586-4df3-b16f-b0da69ec4be0","navigationType":0,"readyForUser":1064.1999999284744,"redirectCount":0,"resourceLoadedEnd":636.3999999761581,"resourceLoadedStart":268.1999999284744,"resourceTiming":[{"duration":22.399999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":268.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":290.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":22.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":268.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":291,"responseStart":0,"secureConnectionStart":0},{"duration":217.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":268.7999999523163,"connectEnd":268.7999999523163,"connectStart":268.7999999523163,"domainLookupEnd":268.7999999523163,"domainLookupStart":268.7999999523163,"fetchStart":268.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":294.39999997615814,"responseEnd":486.6999999284744,"responseStart":311.5,"secureConnectionStart":268.7999999523163},{"duration":366.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":270,"connectEnd":270,"connectStart":270,"domainLookupEnd":270,"domainLookupStart":270,"fetchStart":270,"redirectEnd":0,"redirectStart":0,"requestStart":296.09999990463257,"responseEnd":636.3999999761581,"responseStart":333.7999999523163,"secureConnectionStart":270},{"duration":24.100000023841858,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":270.1999999284744,"connectEnd":270.1999999284744,"connectStart":270.1999999284744,"domainLookupEnd":270.1999999284744,"domainLookupStart":270.1999999284744,"fetchStart":270.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":270.1999999284744,"responseEnd":294.2999999523163,"responseStart":294.2999999523163,"secureConnectionStart":270.1999999284744},{"duration":25.200000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":270.2999999523163,"connectEnd":270.2999999523163,"connectStart":270.2999999523163,"domainLookupEnd":270.2999999523163,"domainLookupStart":270.2999999523163,"fetchStart":270.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":270.2999999523163,"responseEnd":295.5,"responseStart":295.5,"secureConnectionStart":270.2999999523163},{"duration":52.699999928474426,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":270.5,"connectEnd":270.5,"connectStart":270.5,"domainLookupEnd":270.5,"domainLookupStart":270.5,"fetchStart":270.5,"redirectEnd":0,"redirectStart":0,"requestStart":298.2999999523163,"responseEnd":323.1999999284744,"responseStart":321,"secureConnectionStart":270.5},{"duration":26.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":270.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":270.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":297.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":52.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":270.89999997615814,"connectEnd":270.89999997615814,"connectStart":270.89999997615814,"domainLookupEnd":270.89999997615814,"domainLookupStart":270.89999997615814,"fetchStart":270.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":299,"responseEnd":323.2999999523163,"responseStart":321.89999997615814,"secureConnectionStart":270.89999997615814},{"duration":27.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":271,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":271,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":298.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":30.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":271.09999990463257,"connectEnd":271.09999990463257,"connectStart":271.09999990463257,"domainLookupEnd":271.09999990463257,"domainLookupStart":271.09999990463257,"fetchStart":271.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":271.09999990463257,"responseEnd":301.59999990463257,"responseStart":301.59999990463257,"secureConnectionStart":271.09999990463257},{"duration":61.200000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":272.2999999523163,"connectEnd":272.2999999523163,"connectStart":272.2999999523163,"domainLookupEnd":272.2999999523163,"domainLookupStart":272.2999999523163,"fetchStart":272.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":272.2999999523163,"responseEnd":333.5,"responseStart":333.5,"secureConnectionStart":272.2999999523163},{"duration":113.30000007152557,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":273.09999990463257,"connectEnd":273.09999990463257,"connectStart":273.09999990463257,"domainLookupEnd":273.09999990463257,"domainLookupStart":273.09999990463257,"fetchStart":273.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":273.09999990463257,"responseEnd":386.39999997615814,"responseStart":386.39999997615814,"secureConnectionStart":273.09999990463257},{"duration":258.7999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":658,"connectEnd":658,"connectStart":658,"domainLookupEnd":658,"domainLookupStart":658,"fetchStart":658,"redirectEnd":0,"redirectStart":0,"requestStart":879.3999999761581,"responseEnd":916.7999999523163,"responseStart":916.0999999046326,"secureConnectionStart":658}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":32,"responseStart":255,"responseEnd":273,"domLoading":260,"domInteractive":1158,"domContentLoadedEventStart":1158,"domContentLoadedEventEnd":1229,"domComplete":2422,"loadEventStart":2422,"loadEventEnd":2422,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1121.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1122.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1122.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1126.3999999761581},{"name":"activityTabFullyLoaded","time":1246.8999999761581}],"measures":[],"correlationId":"4ec71c6dbb0e83","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":135,"dbReadsTimeInMs":27,"dbConnsTimeInMs":36,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}